Project

General

Profile

« Previous | Next » 

Revision 4474

Added by daigle about 16 years ago

Beef up the regex to find the document namespace

View differences:

src/edu/ucsb/nceas/metacat/service/XMLSchemaService.java
378 378

  
379 379
		// the prefix is at the beginning of the doc
380 380
		String prefix = null;
381
		String regex1 = "^\\s*(.+):.* ";
381
		String regex1 = "^\\s*(\\p{Graph}+):\\p{Graph}* ";
382 382
		Pattern pattern = Pattern.compile(regex1, Pattern.CASE_INSENSITIVE);
383 383
		Matcher matcher = pattern.matcher(targetLine);
384 384
		if (matcher.find()) {

Also available in: Unified diff