File tree Expand file tree Collapse file tree
src/main/java/edu/washington/cs/knowitall/logic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ public LogicExpression<E> apply(String string) {
4545 public abstract Arg <E > factory (String argument );
4646
4747 public final static Pattern doubleQuoteStringLiteralRegex =
48- Pattern .compile ("\" " + "((?: [^\" \\ p{Cntrl}\\ \\ ]| \\ \\ [\\ \\ '\" bfnrt]| \\ \\ u[a-fA-F0-9]{4})*) " + "\" " );
48+ Pattern .compile ("\" " + "([^\" \\ p{Cntrl}\\ \\ ]*+(?: \\ \\ [\\ \\ '\" bfnrt])*+(?: \\ \\ u[a-fA-F0-9]{4})*+)*+ " + "\" " );
4949 public final static Pattern singleQuoteStringLiteralRegex =
50- Pattern .compile ("'" + "([^']*)" + "'" );
50+ Pattern .compile ("'" + "(?: [^']*+ )" + "'" );
5151 public final static Pattern regexLiteralRegex =
52- Pattern .compile ("/" + "((?:[^/\\ \\ ]*(?:\\ \\ )*(?:\\ \\ /)*)* )" + "/" );
52+ Pattern .compile ("/" + "(?: (?:[^/\\ \\ ]*+ (?:\\ \\ )*+ (?:\\ \\ /)*+)*+ )" + "/" );
5353 private final static List <Pattern > literalPatterns = Lists .newArrayList (
5454 doubleQuoteStringLiteralRegex , singleQuoteStringLiteralRegex ,
5555 regexLiteralRegex );
You can’t perform that action at this time.
0 commit comments