style: fix no-useless-escape — remove unnecessary backslashes in regex char classes

This commit is contained in:
2026-06-25 14:32:53 +01:00
parent 0dff41a4ee
commit 7abacbc2b4
2 changed files with 2 additions and 2 deletions
@@ -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);
}