Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit b17ae4c1951d448aa6613dba98c4942488d25b5b 1 parent 2241e3b
@nono nono authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bugspots/scanner.rb
View
2  lib/bugspots/scanner.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.