Skip to content

Commit a1781e0

Browse files
1 parent 80b41cf commit a1781e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_just/dangerously-insert-files/[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ export const encode = (text, key, compress) => {
758758
if (doubleEncoded.length < encoded_.length) {
759759
output_ = `J${doubleEncoded}`;
760760
}
761-
if (/^[0-9]+$/.test(text) && (key === undefined || key === null)) output_ = numEncode(text);
761+
if (/^[0-9]+$/.test(text) && (key === undefined || key === null || key === '')) output_ = numEncode(text);
762762
}
763763
if (even_or_odd(output_.length)) output_ = output_.split('').reverse().join('');
764764
return output_;

0 commit comments

Comments
 (0)