Only detect short refs followed by \b in Danger
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
5106f88a48
commit
8f9d9112e6
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ def lint_commits(commits)
|
|||
failures = true
|
||||
end
|
||||
|
||||
if commit.message.match?(%r(([\w\-\/]+)?(#|!|&|%)\d+))
|
||||
if commit.message.match?(%r(([\w\-\/]+)?(#|!|&|%)\d+\b))
|
||||
fail_commit(
|
||||
commit,
|
||||
'Use full URLs instead of short references ' \
|
||||
|
|
Loading…
Reference in a new issue