Jaro similarity: Difference between revisions
→{{header|Wren}}: Fixed potential bug though results unchanged.
(Added Wren) |
(→{{header|Wren}}: Fixed potential bug though results unchanged.) |
||
Line 3,020:
var end = i + dist + 1
if (end > le2) end = le2
while (k < end) {
if (!(matches2[k] || s1[i] != s2[k])) {
matches1[i] = true
Line 3,027 ⟶ 3,028:
break
}
}
}
if (matches == 0) return 0
|