From f3ad90ef6a42e90be17fd60ac803cfec789a4e36 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 9 May 2019 14:14:25 -0400 Subject: [PATCH] Bug 22862: (QA follow-up) Make regexes match Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize (cherry picked from commit 982fd9fecbe6777805d2d0d3f977f10c522b86c5) Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt index 968630641c..fdd5571580 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt @@ -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; } -- 2.39.5