From d3fba8364f4cff1f7ee4633f8fe0288fcb54eaf0 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 --- 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 145a515447..840b0da7df 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.11.0