Bug 22862: (QA follow-up) Make regexes match
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
115f4f2045
commit
982fd9fecb
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@
|
|||
|
||||
function normalizeSMS(value){
|
||||
let has_plus = value.charAt(0) === '+';
|
||||
let new_value = value.replace(/[^0-9]+/g, '');
|
||||
let new_value = value.replace(/\D/g,'');
|
||||
if ( has_plus ) new_value = '+' + new_value;
|
||||
return new_value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue