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,16 @@
raw.replace("\\", "\\"); // NOT OK
raw.replace(/(\\)/, "\\"); // NOT OK
raw.replace(/["]/, "\""); // NOT OK
raw.replace("\\", "\\\\"); // OK
raw.replace("\\", "\\"); // $ Alert
raw.replace(/(\\)/, "\\"); // $ Alert
raw.replace(/["]/, "\""); // $ Alert
raw.replace("\\", "\\\\");
raw.replace(/foo/g, 'foo'); // NOT OK
raw.replace(/foo/gi, 'foo'); // OK
raw.replace(/foo/g, 'foo'); // $ Alert
raw.replace(/foo/gi, 'foo');
raw.replace(/^\\/, "\\"); // NOT OK
raw.replace(/\\$/, "\\"); // NOT OK
raw.replace(/\b\\/, "\\"); // NOT OK
raw.replace(/\B\\/, "\\"); // NOT OK
raw.replace(/\\(?!\\)/, "\\"); // NOT OK
raw.replace(/(?<!\\)\\/, "\\"); // NOT OK
raw.replace(/^\\/, "\\"); // $ Alert
raw.replace(/\\$/, "\\"); // $ Alert
raw.replace(/\b\\/, "\\"); // $ Alert
raw.replace(/\B\\/, "\\"); // $ Alert
raw.replace(/\\(?!\\)/, "\\"); // $ Alert
raw.replace(/(?<!\\)\\/, "\\"); // $ Alert
raw.replace(/^/, ""); // NOT OK
raw.replace(/^/, ""); // $ Alert