We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b688be commit 1a661a0Copy full SHA for 1a661a0
runbot/models/build_error.py
@@ -1232,7 +1232,7 @@ def _validate(self):
1232
except re.error as e:
1233
raise ValidationError("Unable to compile regular expression: %s" % e)
1234
# verify that a named group exist in the pattern
1235
- if not re.search(r'\(\?P<\w+>.+\)', r.pattern):
+ if not r.groupindex:
1236
raise ValidationError(
1237
"The regular expresion should contain at least one named group pattern e.g: '(?P<module>.+)'"
1238
)
0 commit comments