Skip to content

Commit a33ac45

Browse files
committed
fix(common): broken test
1 parent 5fc7613 commit a33ac45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function hasApproxPattern(word, pattern) {
7474
for (var i = 0; i <= pattern.length; i++) {
7575
var index = indexOf(word, p, pattern.charAt(i));
7676
if (index == -1) return false;
77-
p += index;
77+
p += index + 1;
7878
}
7979
return true
8080
}

0 commit comments

Comments
 (0)