Project

General

Profile

« Previous | Next » 

Revision 7816

correct regex for whitespace in D1 identifier.

View differences:

D1NodeService.java
1006 1006
   */
1007 1007
  public static boolean isValidIdentifier(Identifier pid) {
1008 1008
	  if (pid != null && pid.getValue() != null && pid.getValue().length() > 0) {
1009
		  return !pid.getValue().matches("\\s");
1009
		  return !pid.getValue().matches(".*\\s+.*");
1010 1010
	  } 
1011 1011
	  return false;
1012 1012
  }

Also available in: Unified diff