style: fix no-useless-escape — remove unnecessary backslashes in regex char classes
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
}
|
||||
|
||||
function normalizePhone(value: string): string {
|
||||
let cleaned = value.replace(/[\s\-\(\)]/g, '');
|
||||
let cleaned = value.replace(/[\s\-()]/g, '');
|
||||
if (cleaned.startsWith('07')) {
|
||||
cleaned = '+44' + cleaned.substring(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user