From 5cd57a7b88d8e745b08182d1227ded19000db60e Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 3 Aug 2006 02:14:26 +0000 Subject: [PATCH] added phone extension support git-svn-id: svn://svn.open-ils.org/ILS/trunk@5236 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/ue.xhtml | 8 ++++---- Open-ILS/xul/staff_client/server/patron/ue_config.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/ue.xhtml b/Open-ILS/xul/staff_client/server/patron/ue.xhtml index 53cd7e6363..21a4b8128e 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.xhtml +++ b/Open-ILS/xul/staff_client/server/patron/ue.xhtml @@ -389,8 +389,8 @@
Daytime Phone
- - (123-456-7890) + + Example: 123-456-7890 or 123-456-7890 ex123
@@ -398,7 +398,7 @@
Evening Phone
- +
@@ -406,7 +406,7 @@
Other/Cell Phone
- +
diff --git a/Open-ILS/xul/staff_client/server/patron/ue_config.js b/Open-ILS/xul/staff_client/server/patron/ue_config.js index 0cf31d8bb8..a4749bf592 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -41,7 +41,7 @@ const numRegex = /^\d+$/; const wordRegex = /^\w+$/; const ssnRegex = /^\d{3}-\d{2}-\d{4}$/; const dlRegex = /^[a-zA-Z]{2}-\w+/; /* driver's license */ -const phoneRegex = /\d{3}-\d{3}-\d{4}/; +const phoneRegex = /^\d{3}-\d{3}-\d{4}(| ex\d+)$/i; const nonumRegex = /^[a-zA-Z]\D*$/; /* no numbers, no beginning whitespace */ const dateRegex = /^\d{4}-\d{2}-\d{2}/; const zipRegex = /^\d{5}(-\d{4}|$)/; /* 12345 or 12345-6789 */ -- 2.11.0