semantic update
This commit is contained in:
10
test_parse2.py
Normal file
10
test_parse2.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import re
|
||||
patterns = {
|
||||
"console_log": re.compile(r"console\.log\s*\(\s*['\"]\[[\w_]+\]\[[A-Za-z0-9_:]+\]"),
|
||||
}
|
||||
with open("frontend/src/lib/components/assistant/AssistantChatPanel.svelte") as f:
|
||||
for i, line in enumerate(f):
|
||||
if "console.log" in line:
|
||||
m = patterns["console_log"].search(line)
|
||||
print(f"Line {i+1}: {line.strip()} -> Match: {bool(m)}")
|
||||
|
||||
Reference in New Issue
Block a user