disable eslint for while loop

This commit is contained in:
Chrissi2812 2019-06-03 12:52:59 +02:00
parent 2544e40f99
commit edd54f90b0
No known key found for this signature in database
GPG Key ID: B4B82C7E618271DA

View File

@ -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
}