Skip to content

Commit fb5f645

Browse files
committed
fix: the ASCII whitespaces are preserved so can not be escaped
https://infra.spec.whatwg.org/#ascii-whitespace
1 parent 9d03015 commit fb5f645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function normalizePath(file) {
260260
}
261261

262262
// eslint-disable-next-line no-control-regex
263-
const filenameReservedRegex = /[<>:"/\\|?*]/g;
263+
const filenameReservedRegex = /[<>:"/\\|?*\s]/g;
264264
// eslint-disable-next-line no-control-regex
265265
const reControlChars = /[\u0000-\u001f\u0080-\u009f]/g;
266266

0 commit comments

Comments
 (0)