JS: Update OK-style comments to $-style

This commit is contained in:
Asger F
2025-02-06 13:34:01 +01:00
parent 7e5c24a8ec
commit 9be041e27d
536 changed files with 4408 additions and 4762 deletions

View File

@@ -1,16 +1,13 @@
// OK
/\0/;
// NOT OK
/\1/;
// OK
/\1/; // $ Alert
/^(\s+)\w+\1$/;
// NOT OK
/^(?:\s+)\w+\1$/;
// OK
/^(?:\s+)\w+\1$/; // $ Alert
/[\1]/;
// OK
/^(?<ws>\s+)\w+\1$/;
/^(?<ws>\s+)\w+\k<ws>$/;
// NOT OK
/^(?<ws>\s+)\w+\2$/;
/^(?<ws>\s+)\w+\2$/; // $ Alert
/^(?<ws>\s+)\w+\k<whitespace>$/;