Skip to content

Commit

Permalink
No need to have whitespace in regex twice
Browse files Browse the repository at this point in the history
  • Loading branch information
johncurrier committed Oct 22, 2008
1 parent 1f8aeff commit f4c264c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/sourceforge/schemaspy/view/XmlTableFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class XmlTableFormatter {
// and attempting to match 0x10000-0x10FFFF with the \p Unicode escapes
// (from http://www.regular-expressions.info/unicode.html)
private static final Pattern validXmlChars =
Pattern.compile("^[\u0009\n\r -\uD7FF\uE000-\uFFFD\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*$");
Pattern.compile("^[ -\uD7FF\uE000-\uFFFD\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}]*$");

/**
* Singleton...don't allow instantiation
Expand Down

0 comments on commit f4c264c

Please sign in to comment.