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)
committerThomas Berezansky <tsbere@mvlc.org>
Tue, 2 Aug 2011 17:55:13 +0000 (13:55 -0400)
commit5c1f7ab1b1e18c702635d02d0952d65e4618466a
tree10dc6b790cc86a191086660b2f7885ab8023edce
parente1658e2809d7cb88cb92d98d1a099fdb79e9adc6
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>
Open-ILS/web/js/ui/default/actor/user/register.js