Ticket #22 (closed defect: fixed)
LSID validation issue
| Reported by: | andrew | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | Interim Schema Release (non-breaking September 2007) |
| Component: | Schema | Version: | |
| Keywords: | Cc: |
Description
The - (dash) character is handled different by different regex parsers. To be most compatible with a range of parsers always escape the character.
Details from Jave 1.5 parser: InvalidRegex?: Pattern value '(urn:lsid:([\w-\.]+\.[\w-\.]+)+:Plate:\S+)|(Plate:\S+)' is not a valid regular expression. The reported error was: -' is an invalid character range. Write '\-'.'.
The problem is that [\w-\.] is being interpreted as a character range, due to the dash. The fix is to write [\w\-\.] instead whenever that pattern appears.
Affected XSD files (ome.xsd, SPW.xsd and AnalysisModule?.xsd)
Change History
Note: See
TracTickets for help on using
tickets.
