Kotlin: Update regex patterns to use raw string notation

Fixes warnings like
SyntaxWarning: invalid escape sequence '\S'
This commit is contained in:
Ian Lynagh
2025-07-13 23:42:50 +01:00
parent 14a362d1bc
commit a6701ced8d

View File

@@ -35,10 +35,10 @@ def parse_dbscheme(filename):
unions[name] = typs
# tables
for relname, body in re.findall('\n([\w_]+)(\([^)]*\))',
for relname, body in re.findall(r'\n([\w_]+)(\([^)]*\))',
dbscheme,
flags=re.DOTALL):
columns = list(re.findall('(\S+)\s*:\s*([^\s,]+)(?:\s+(ref)|)', body))
columns = list(re.findall(r'(\S+)\s*:\s*([^\s,]+)(?:\s+(ref)|)', body))
tables[relname] = columns
parse_dbscheme(dbscheme)