Remove useless u flags in regular expressions (#18509)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-12-21 23:44:08 +08:00
1 parent 97f2e81d06
commit c9eb4bcd9e
131 files changed
+388 -405

No files matched your search

@@ -14,7 +14,7 @@ const languages = [
throw new Error("Unexpected non absolute path");
}
return /(?<separator>[\\/])\.husky\k<separator>[^\\/]+$/u.test(filepath);
return /(?<separator>[\\/])\.husky\k<separator>[^\\/]+$/.test(filepath);
},
},
];