Hi there,

While reading the source code of AnalyzingQueryParser to understand what it
does, I think I found a bug in the regular expression used to detect
wildcards. It is defined as

  // gobble escaped chars or find a wildcard character
  private final Pattern wildcardPattern = Pattern.compile("(\\.)|([?*]+)");

The first group will match a literal dot ("."), while its intention seems
to be to match a backslash and a single character. So the expression should
instead be "(\\\\.)|([?*]+)"

Best Regards
Dennis

Reply via email to