Tim Allison created LUCENE-5839:
-----------------------------------
Summary: Regex bug in AnalyzingQueryParser
Key: LUCENE-5839
URL: https://issues.apache.org/jira/browse/LUCENE-5839
Project: Lucene - Core
Issue Type: Bug
Components: core/queryparser
Affects Versions: 4.9
Reporter: Tim Allison
Priority: Trivial
Dennis Walter recently pointed out this bug on [email protected]:
" // 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 "(\\\\.)|([?*]+)" "
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]