We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f7a2b1 commit 54f5ee5Copy full SHA for 54f5ee5
1 file changed
src/patchtest2/patterns.py
@@ -56,6 +56,8 @@
56
mbox_bugzilla_validation = pyparsing.Regex("\[(\s?YOCTO\s?#\s?(\d+)\s?,?)+\]")
57
mbox_revert_shortlog_regex = pyparsing.Regex('Revert\s+".*"')
58
mbox_shortlog_maxlength = 90
59
+# based on https://stackoverflow.com/questions/30281026/regex-parsing-github-usernames-javascript
60
+mbox_github_username = pyparsing.Regex('\B@([a-z0-9](?:-(?=[a-z0-9])|[a-z0-9]){0,38}(?<=[a-z0-9]))')
61
62
# patch
63
0 commit comments