update regexes to match django

This commit is contained in:
danhanson committed 2026-09-06 05:06:59 -05:00
1 parent d86f6533a8
commit 451e38cad4
4 files changed
+1138 -1097

No files matched your search

+2 -2
View File
@@ -138,7 +138,7 @@
},
"number": {
"type": "PATTERN",
"value": "[-+]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][0-9]+)?"
"value": "[-+]?(?:[0-9](?:_?[0-9])*(?:\\.(?:[0-9](?:_?[0-9])*)?)?|\\.[0-9](?:_?[0-9])*)(?:[eE][0-9](?:_?[0-9])*)?"
},
"string": {
"type": "PATTERN",
@@ -146,7 +146,7 @@
},
"attribute": {
"type": "PATTERN",
"value": "[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*"
"value": "[a-zA-Z0-9][a-zA-Z0-9_]*(?:\\.[a-zA-Z0-9][a-zA-Z0-9_]*)*"
},
"variable_attribute": {
"type": "SEQ",