From a294578771f51da49e74753efce8e55f5717856d Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 19 Oct 2009 13:18:42 +0000 Subject: [PATCH] back-porting 14326 for canadian post code support in user editor git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@14485 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/ue_config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 247e69456a..da06c7b4c1 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -30,7 +30,7 @@ const dlRegex = /^[a-zA-Z]{2}-\w+/; /* driver's license */ const phoneRegex = /^\d{3}-\d{3}-\d{4}(| \S+.*)$/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 */ +const zipRegex = /^\d{5}(-\d{4}|-?$)|(^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$)/; var barredAlerted = false; -- 2.11.0