fix: search for duplicate keyword boundary error #528
This commit is contained in:
@@ -222,7 +222,7 @@ export class Search {
|
|||||||
let index = text.indexOf(payload)
|
let index = text.indexOf(payload)
|
||||||
while (index !== -1) {
|
while (index !== -1) {
|
||||||
matchStartIndexList.push(index)
|
matchStartIndexList.push(index)
|
||||||
index = text.indexOf(payload, index + 1)
|
index = text.indexOf(payload, index + payload.length)
|
||||||
}
|
}
|
||||||
for (let m = 0; m < matchStartIndexList.length; m++) {
|
for (let m = 0; m < matchStartIndexList.length; m++) {
|
||||||
const startIndex = matchStartIndexList[m]
|
const startIndex = matchStartIndexList[m]
|
||||||
|
|||||||
Reference in New Issue
Block a user