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:
1 parent
c2ab62e8d2
commit
1a3ef69056
14 files changed
+185
-215
No files matched your search
@@ -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]*$/, ""),
|
||||
},
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user