Only detect short refs followed by \b in Danger

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2019-01-08 16:37:06 +01:00
parent 5106f88a48
commit 8f9d9112e6
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B

View file

@ -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 ' \