Skip to content

Commit a40edfb

Browse files
committed
replace const with var
1 parent 659cb85 commit a40edfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ export class Matcher {
497497
method = '==';
498498
}
499499
const value = matcher[7] || matcher[8];
500-
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;`;
500+
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;`;
501501
} else {
502502
source += 'if (el.tagName != ' + JSON.stringify(tagName) + ') return false;';
503503
}

0 commit comments

Comments
 (0)