phase3: FIX arg-bang regex (missing \] in char class skipped subscripts). 235->183

This commit is contained in:
2026-07-31 14:57:23 +08:00
parent 70076d71c1
commit 18abf4eb82
15 changed files with 51 additions and 51 deletions

View File

@@ -132,7 +132,7 @@ def insert_arg_bang(line, col0):
if not val: return None
if val[0] in '0123456789"\'': return None # 字面量跳过
if val in ('true','false','null'): return None
if not re.fullmatch(r'[\w.\[\()!]+', val): return None # 含运算符/空格跳过
if not re.fullmatch(r'[\w.\[\]()!]+', val): return None # 含运算符/空格跳过
return line[:j+1]+'!'+line[j+1:]
def make_field_nullable(lines, name):