DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26199>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26199

[Validator][PATCH] Change RegExp in mask so ^ and $ not required at start/end

           Summary: [Validator][PATCH] Change RegExp in mask so ^ and $ not
                    required at start/end
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Currently the "mask" validation uses ORO's contains() method to validate a 
value against a pattern. To get this to work users have to put a ^ at the start 
of the RegExp pattern and $ at the end.

This change switches to use ORO's matches() method, which means the ^ and $ are 
not required.

This change is however backward compatible and expressions with the symbols ^ 
and $ will continue to work.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to