Fix bugs when replacing characters with space (#18455)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
fisker Cheungandautofix-ci[bot] authored and GitHub committed 2025-12-12 04:08:37 +08:00
1 parent c2ab62e8d2
commit 1a3ef69056
14 files changed
+185 -215

No files matched your search

-1
View File
@@ -18,7 +18,6 @@ for (const size of [1, 1e1, 1e2]) {
(regexp) => () =>
text.replace(regexp, "")
)(/[ \t]*$/gu),
// eslint-disable-next-line require-unicode-regexp
"RegExp (no `u` flag)": () => text.replace(/[ \t]*$/, ""),
},
);