Skip to content

Commit 90c6ab3

Browse files
Update apps/web/src/utils/upload.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 3ddadaa commit 90c6ab3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/web/src/utils/upload.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ function nonVisibleCharChecker(entry: string | undefined) {
7575
if (!entry) {
7676
return null;
7777
}
78+
zeroWidthCharactersExceptNewline.lastIndex = 0;
7879
const nonVisibleCharCheck = zeroWidthCharactersExceptNewline.exec(entry);
7980

8081
return nonVisibleCharCheck;
8182
}
83+
}
8284

8385
const ZOD_TYPE_NAMES = [
8486
'ZodNumber',

0 commit comments

Comments
 (0)