mirror of
https://git.yoctoproject.org/poky
synced 2026-08-19 15:49:32 +02:00
patchtest: don't match BitBake python expansion as GitHub username
BitBake's Python expansion syntax looks very similar to GitHub usernames:
${@foo} - which triggers a false alarm from patchtest.
This patch adds a negative lookahead to the GitHub username matching pattern:
only match in case the pattern doesn't start with "${" characters.
Also add a test for it.
(From OE-Core rev: 6aa8eeadbb626bb5e5459ac2caf73b8fb0f2b936)
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bcda889ef1
commit
d8068d6c85
@@ -59,7 +59,7 @@ mbox_bugzilla_validation = pyparsing.Regex('\[(\s?YOCTO\s?#\s?(\d+)\s?,?)+\]')
|
||||
mbox_revert_shortlog_regex = pyparsing.Regex('Revert\s+".*"')
|
||||
mbox_shortlog_maxlength = 90
|
||||
# based on https://stackoverflow.com/questions/30281026/regex-parsing-github-usernames-javascript
|
||||
mbox_github_username = pyparsing.Regex('\B@([a-z0-9](?:-(?=[a-z0-9])|[a-z0-9]){0,38}(?<=[a-z0-9]))')
|
||||
mbox_github_username = pyparsing.Regex('\B(?<!\${)@([a-z0-9](?:-(?=[a-z0-9])|[a-z0-9]){0,38}(?<=[a-z0-9]))')
|
||||
|
||||
# patch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user