10000 Only match whole words · codeclimate/codeclimate-fixme@6cfb796 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6cfb796

Browse files
committed
Only match whole words
1 parent af6645a commit 6cfb796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var printIssue = function(fileName, lineNum, matchedString){
3232

3333
var findFixmes = function(file){
3434
// Prepare the grep string for execution (uses BusyBox grep)
35-
var grepString = "grep -inHo -E " + fixmeStrings + " " + file;
35+
var grepString = "grep -inwHoE " + fixmeStrings + " " + file;
3636

3737
// Execute grep with the FIXME patterns
3838
exec(grepString, function(error, stdout, stderr) {

0 commit comments

Comments
 (0)
0