Revision 7816
Added by ben leinfelder almost 11 years ago
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
correct regex for whitespace in D1 identifier.