Revision 5368
Added by ben leinfelder over 14 years ago
src/edu/ucsb/nceas/metacat/service/XMLSchemaService.java | ||
---|---|---|
322 | 322 |
// see if there is a match for xsi.schemaLocation. If so, extract the |
323 | 323 |
// schemas. |
324 | 324 |
if (targetLine != null) { |
325 |
String regex = "(\\p{Graph}*):schemaLocation=\"(.*)\"";
|
|
325 |
String regex = "(\\p{Graph}*):schemaLocation=\"([^\"]*)\"";
|
|
326 | 326 |
Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE |
327 | 327 |
| Pattern.DOTALL); |
328 | 328 |
Matcher matcher = pattern.matcher(targetLine); |
Also available in: Unified diff
allow any nonquote characters in the schemaLocation attribute, otherwise the whole line is matched and this prevents schemaLocation from appearing anywhere but at the end of the line.