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>
(cherry picked from commit 982fd9fecb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Kyle M Hall 2019-05-09 14:14:25 -04:00 committed by Fridolin Somers
parent e461daff80
commit f3ad90ef6a
1 changed files with 1 additions and 1 deletions

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