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:
Kyle Hall 2019-05-09 14:14:25 -04:00 committed by Martin Renvoize
parent 115f4f2045
commit 982fd9fecb
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -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;
}