We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a337ee8 commit 4b434cdCopy full SHA for 4b434cd
1 file changed
apps/web/src/utils/upload.ts
@@ -67,7 +67,8 @@ function nonVisibleCharChecker(entry: string | undefined) {
67
if (!entry) {
68
return null;
69
}
70
- const nonVisibleCharCheck = /[^\u0009\u000A\u000D\u0020-\u007E\u00C0-\u024F]+/g.exec(entry);
+ const nonVisibleCharCheck = /[\u200B-\u200D\uFEFF\u180E\u00AD\u2060-\u2064\u206A-\u206F]/g.exec(entry);
71
+ // /[^\u0009\u000A\u000D\u0020-\u007E\u00C0-\u024F]+/g
72
// old regex /[\u200B-\u200D\uFEFF\u180E]/g
73
return nonVisibleCharCheck;
74
0 commit comments