commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adam kramer <>
Subject [validator] regexp tests, patches for tests
Date Tue, 24 Jun 2003 01:51:32 GMT

Hello all, never posted to the list, but I've been lurking for a bit.

Bug 17799
brought up that '/'s were not being escaped in regular expression patterns
(masks) so I decided to look into it. I found out that when I included
'/'s in the regexp value and did not escape them, a matching value for the
regexp passed regardless. I decided to formalize this with some unit tests
that cover one pattern with '/'s and another phone number pattern just to
verify that regexp pattern (masks) matching is working ok.

I've attached a file and another file of patches to get it
to run with 'ant test'. All tests are a go. If I should include patches
and new code in the body of the email just let me know. I figured it might
get passed up if I posted new code to bug database.

Adam Kramer
View raw message