diff --git a/packages/tiptap-extensions/src/extensions/Search.js b/packages/tiptap-extensions/src/extensions/Search.js index 2fe57f35d..57d48bd48 100644 --- a/packages/tiptap-extensions/src/extensions/Search.js +++ b/packages/tiptap-extensions/src/extensions/Search.js @@ -94,7 +94,8 @@ export default class Search extends Extension { mergedTextNodes.forEach(({ text, pos }) => { const search = this.findRegExp let m - while (m = search.exec(text)) { + // eslint-disable-next-line no-cond-assign + while ((m = search.exec(text))) { if (m[0] === '') { break }