From 14026b1395361baafd3d23bcc128164d96ad05a4 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 --- 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.20.1 (Apple Git-117)