chore: no-control-regex as it becames recommanded

This commit is contained in:
Peter Sanderson
2024-11-06 14:15:06 +01:00
committed by Peter Sanderson
parent 12a76ec81a
commit a8c4a9f34c
3 changed files with 2 additions and 3 deletions

View File

@@ -225,6 +225,7 @@ module.exports = {
'no-sync': 'off', // disallow use of synchronous methods (off by default)
'eol-last': 'error',
'import/no-default-export': 'error',
'no-control-regex': 'error',
// Variables
// These rules have to do with variable declarations.

View File

@@ -113,5 +113,3 @@ describe('Passphrase reconnection', () => {
cy.getTestElement('@modal/close-button').click();
});
});
export {};

View File

@@ -1,5 +1,5 @@
// Regular expression to match non-ASCII characters
const nonAsciiPattern = /[^\x00-\x7F]/g;
const nonAsciiPattern = /[^\x20-\x7E]/g;
export function isAscii(value?: string): boolean {
if (!value) return true;