Skip to content

Commit 7edcf26

Browse files
committed
AC-391: Static test to cover "deprecated" jQuery methods
- Remove accidental detection of $$ identifier from prototype.js in magento
1 parent 05b2fdc commit 7edcf26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eslint/rules/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function isjQuery(node) {
4040

4141
var id = traverse(node);
4242

43-
return id && (id.name.startsWith('$') || id.name.toLowerCase() === 'jquery');
43+
return id && (id.name === '$' || id.name.toLowerCase() === 'jquery');
4444
}
4545

4646
module.exports = {

0 commit comments

Comments
 (0)