]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Regex check for "last 4 digits of phone number"
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 13 Jun 2011 05:01:52 +0000 (01:01 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 8 Sep 2011 05:21:38 +0000 (01:21 -0400)
commit353e6ce078a37a2f5b8c3c581602bd9fa36ce0c7
treedc329cef846cfb80368a47edc1192780ba5b3227
parent6402ef9d74cb09a40dc964eca8511bd87723f919
Regex check for "last 4 digits of phone number"

If the day_phone regex (direct or from generic phone) has a capture group use it as the "last 4 digits".

For example, you might configure this for day_phone regex:

[2-9]\d{2}-\d{3}-(\d{4})( x\d+)?

With this patch the extension will be ignored for the last 4 digits.

Note: Does not require that the "last 4 digits" capture group actually contain 4 digits.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/web/js/ui/default/actor/user/register.js