Bugzilla – Attachment 89522 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), 923 bytes, created by
Kyle M Hall
on 2019-05-09 18:14:44 UTC
(
hide
)
Description:
Bug 22862: (QA follow-up) Make regexes match
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2019-05-09 18:14:44 UTC
Size:
923 bytes
patch
obsolete
>From 14026b1395361baafd3d23bcc128164d96ad05a4 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 > >--- > 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)
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