We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac48c5 commit a5404d5Copy full SHA for a5404d5
src/extract/src/html/extract-regexps-html.py
@@ -10,6 +10,7 @@
10
import subprocess
11
import json
12
import tempfile
13
+import os
14
15
def extract_js(file_path):
16
with open(file_path) as fp:
@@ -22,7 +23,7 @@ def extract_js(file_path):
22
23
return js_from_html
24
25
def extract_regexes(json_tempfile):
- output = subprocess.run(['./extract-regexes.pl', json_tempfile.name],
26
+ output = subprocess.run([os.path.join(os.getcwd(), 'extract-regexes.pl'), json_tempfile.name],
27
capture_output=True, text=True)
28
return json.loads(output.stdout)
29
src/extract/test/html/t.html
@@ -9,7 +9,7 @@
9
</script>
<script>
- var re = /abcsd/;
+ var re = /abcsdxxx/;
</header>
0 commit comments