Skip to content

Commit 86d6cec

Browse files
committed
Fix the config regex for the wiki generator
1 parent 5864072 commit 86d6cec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/lintlib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
level_re = re.compile(r'''(Forbid|Deny|Warn|Allow)''')
1515
conf_re = re.compile(r'''define_Conf! {\n([^}]*)\n}''', re.MULTILINE)
1616
confvar_re = re.compile(
17-
r'''/// Lint: (\w+). (.*).*\n\s*\("([^"]*)",\s+(?:[^,]*),\s+([^=]*)\s+=>\s+(.*)\),''', re.MULTILINE)
17+
r'''/// Lint: (\w+). (.*).*\n\s*\([^,]+,\s+"([^"]+)",\s+([^=\)]+)=>\s+(.*)\),''', re.MULTILINE)
1818

1919

2020
def parse_lints(lints, filepath):

0 commit comments

Comments
 (0)