Skip to content

Commit e8292c9

Browse files
committed
feat: deal with 3 spaces (tab in vscode csv editor)
1 parent 10e8c78 commit e8292c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/web/src/utils/upload.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ const ansiEscapeCode = '[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0
6868
'\u0000-\u0009\u000B-\u0019\u001b\u180e\u009b\u00ad\u200b\u2028\u2029\ufeff\ufe00-\ufe0f';
6969

7070
const zeroWidthCharactersExceptNewline = new RegExp(
71-
'(?:' + ansiEscapeCode + ')|[' + zeroWidthCharacterExceptNewline + ']',
71+
// eslint-disable-next-line no-misleading-character-class
72+
'(?:' + ansiEscapeCode + ')|[' + zeroWidthCharacterExceptNewline + ']|(?: {3})',
7273
'g'
7374
);
7475

0 commit comments

Comments
 (0)