Permalink
Browse files

Improve the default regexp

The regexp was matching terms like fixtures, prefix or closet.
I've added word boundary anchors to avoid that.
  • Loading branch information...
1 parent 2241e3b commit b17ae4c1951d448aa6613dba98c4942488d25b5b @nono nono committed Oct 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bugspots/scanner.rb
View
@@ -12,7 +12,7 @@ def self.scan(repo, branch = "master", depth = 500, regex = nil)
end
fixes = []
- regex ||= /fix(es|ed)?|close(s|d)?/i
+ regex ||= /\b(fix(es|ed)?|close(s|d)?)\b/i
tree = repo.tree(branch)

0 comments on commit b17ae4c

Please sign in to comment.