Skip to content

Commit 1992b41

Browse files
BoyerMoore.js| Final Fix :(
Hopefully! 12 commits to add an algorithm.
1 parent 9181bde commit 1992b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

String/BoyerMoore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const boyerMoore = (str, pattern) => {
4141
// increase the offset if it exists
4242
offset += badMatchTable[badMatchString]
4343
} else {
44-
offset ++
44+
offset++
4545
}
4646
}
4747
return -1

0 commit comments

Comments
 (0)