The problem part is:
|
const valid = secret && (DontUseCover || (cover && /\w \w/.test(cover))); |
\w \w Regex doesn't match non-English symbols (and also words splitted with 2 spaces):

How about changing in to .( )+., so it was those two symbols separated by any count of spaces?

The problem part is:
invisible-chat/src/components/EncryptionModal.tsx
Line 23 in 98985bf
\w \wRegex doesn't match non-English symbols (and also words splitted with 2 spaces):How about changing in to
.( )+., so it was those two symbols separated by any count of spaces?