File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ function parseSetEntry(entry: string): Set<string> {
6565
6666function nonVisibleCharChecker ( entry : string | undefined ) {
6767 if ( ! entry ) {
68- return false ;
68+ return null ;
6969 }
7070 const nonVisibleCharCheck = / [ \u200B - \u200D \uFEFF \u180E ] / g. exec ( entry ) ;
7171 return nonVisibleCharCheck ;
@@ -558,7 +558,7 @@ export namespace Zod3 {
558558 const nonVisibleCharCheck = nonVisibleCharChecker ( rawValue ) ;
559559
560560 //Check for non visible char in every row, return error if present
561- if ( nonVisibleCharCheck !== null && nonVisibleCharCheck !== false ) {
561+ if ( nonVisibleCharCheck !== null ) {
562562 return reject (
563563 new UploadError ( {
564564 en : `Value at row ${ rowNumber } and column ${ key } contains Non-visible characters` ,
@@ -913,7 +913,7 @@ export namespace Zod4 {
913913 const nonVisibleCharCheck = nonVisibleCharChecker ( rawValue ) ;
914914
915915 //Check for non visible char in every row, return error if present
916- if ( nonVisibleCharCheck !== null && nonVisibleCharCheck !== false ) {
916+ if ( nonVisibleCharCheck !== null ) {
917917 return reject (
918918 new UploadError ( {
919919 en : `Value at row ${ rowNumber } and column ${ key } contains Non-visible characters` ,
You can’t perform that action at this time.
0 commit comments