Issue Details (XML | Word | Printable)

Key: SCAFF-183
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: David Peterson
Reporter: big z
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Extension: Scaffolding Plugin

add regular expression validation

Created: 04/Dec/07 11:29 AM   Updated: 16/Sep/08 08:42 AM
Component/s: {text-data}
Affects Version/s: 2.3-dr7
Fix Version/s: 3.1.0

Time Tracking:
Not Specified

File Attachments: 1. Text File TextDataMacro.java.patch (1.0 kB)



 Description  « Hide
now {text-data} only supports "requre" validation. so I add regular expression validation. with it we could do more flexible validation for {text-data}

e.g.

{text-data:project key|required=true|regexp=\[A-Z\]\{2,4\}|regexpinfo=must contain 2-4 capital letters}

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
David Peterson added a comment - 29/Aug/08 05:37 AM
I've set this to be looked at for 3.1.

David Peterson added a comment - 16/Sep/08 08:42 AM
This has been implemented in 3.1.0, using the 'pattern' and 'patternInfo' parameters.