We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1292ab commit e71915eCopy full SHA for e71915e
index.js
@@ -61,14 +61,12 @@ module.exports = (function()
61
62
var vector = new Array(la << 1);
63
64
- bx0 = b.charCodeAt(offset);
65
- dd = 1;
66
- for (y = 0; y < la; y++) {
+ for (y = 0; y < la;) {
67
vector[la + y] = a.charCodeAt(offset + y);
68
- vector[y] = dd = dd < y ? dd + 1 : bx0 === vector[la + y] ? y : y + 1;
+ vector[y] = ++y;
69
}
70
71
- for (x = 1; (x + 3) < lb;) {
+ for (x = 0; (x + 3) < lb;) {
72
bx0 = b.charCodeAt(offset + (d0 = x));
73
bx1 = b.charCodeAt(offset + (d1 = x + 1));
74
bx2 = b.charCodeAt(offset + (d2 = x + 2));
0 commit comments