Commit 8f9d9112 authored by Rémy Coutable's avatar Rémy Coutable

Only detect short refs followed by \b in Danger

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 5106f88a
...@@ -178,7 +178,7 @@ def lint_commits(commits) ...@@ -178,7 +178,7 @@ def lint_commits(commits)
failures = true failures = true
end end
if commit.message.match?(%r(([\w\-\/]+)?(#|!|&|%)\d+)) if commit.message.match?(%r(([\w\-\/]+)?(#|!|&|%)\d+\b))
fail_commit( fail_commit(
commit, commit,
'Use full URLs instead of short references ' \ 'Use full URLs instead of short references ' \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment