mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-03 05:55:03 +01:00
chore: no-control-regex as it becames recommanded
This commit is contained in:
committed by
Peter Sanderson
parent
12a76ec81a
commit
a8c4a9f34c
@@ -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.
|
||||
|
||||
@@ -113,5 +113,3 @@ describe('Passphrase reconnection', () => {
|
||||
cy.getTestElement('@modal/close-button').click();
|
||||
});
|
||||
});
|
||||
|
||||
export {};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user