Enable require-unicode-regexp and regexp/strict rule (#16408)

This commit is contained in:
fisker Cheung authored and GitHub committed 2024-06-18 07:52:54 +09:00
1 parent 22dad9c1a8
commit c03a12ad2b
127 files changed
+370 -357

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ window.addEventListener("load", () => {
logoWrapper.addEventListener("dragstart", handleLogoDrag);
lastDash.addEventListener("animationend", (event) => {
if (/roll/.test(event.animationName)) {
if (/roll/u.test(event.animationName)) {
logo.classList.remove("rolling");
}
});
+1 -1
View File
@@ -53,4 +53,4 @@ toolbox.router.default = toolbox.networkFirst;
// For scripts, stylesheets and images, we can use the "fastest" strategy
// This means you need to reload twice to get new changes
toolbox.router.get(/\.(js|css|png|svg)$/, toolbox.fastest);
toolbox.router.get(/\.(js|css|png|svg)$/u, toolbox.fastest);