Bugzilla – Attachment 89598 Details for
Bug 22862
It should be possible to paste formatted phone numbers into the SMS messaging number field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22862: (QA follow-up) Make regexes match
Bug-22862-QA-follow-up-Make-regexes-match.patch (text/plain), 964 bytes, created by
Katrin Fischer
on 2019-05-11 12:19:15 UTC
(
hide
)
Description:
Bug 22862: (QA follow-up) Make regexes match
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-05-11 12:19:15 UTC
Size:
964 bytes
patch
obsolete
>From d3fba8364f4cff1f7ee4633f8fe0288fcb54eaf0 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 9 May 2019 14:14:25 -0400 >Subject: [PATCH] Bug 22862: (QA follow-up) Make regexes match > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22862
:
89458
|
89474
|
89522
|
89597
| 89598