mirror of
https://github.com/danbulant/node-html-parser
synced 2026-06-19 06:31:30 +00:00
replace const with var
This commit is contained in:
parent
659cb85c6c
commit
a40edfb2e8
1 changed files with 1 additions and 1 deletions
|
|
@ -497,7 +497,7 @@ export class Matcher {
|
||||||
method = '==';
|
method = '==';
|
||||||
}
|
}
|
||||||
const value = matcher[7] || matcher[8];
|
const value = matcher[7] || matcher[8];
|
||||||
source += `const attrs = el.attributes;for (const key in attrs){const val = attrs[key]; if (key == "${attr_key}" && val ${method} "${value}"){return true;}} return false;`;
|
source += `var attrs = el.attributes;for (var key in attrs){const val = attrs[key]; if (key == "${attr_key}" && val ${method} "${value}"){return true;}} return false;`;
|
||||||
} else {
|
} else {
|
||||||
source += 'if (el.tagName != ' + JSON.stringify(tagName) + ') return false;';
|
source += 'if (el.tagName != ' + JSON.stringify(tagName) + ') return false;';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue