mirror of
https://github.com/danbulant/node-html-parser
synced 2026-05-19 04:18:52 +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 = '==';
|
||||
}
|
||||
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 {
|
||||
source += 'if (el.tagName != ' + JSON.stringify(tagName) + ') return false;';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue