mirror of https://github.com/apache/lucene.git
SOLR-10601: StreamExpressionParser should handle white space around = in named parameters
This commit is contained in:
parent
b901d16b9b
commit
17563ce81f
|
@ -147,7 +147,7 @@ public class StreamExpressionParser {
|
||||||
int firstOpenEquals = findNextClear(clause, 0, '=');
|
int firstOpenEquals = findNextClear(clause, 0, '=');
|
||||||
if(firstOpenEquals <= 0 || firstOpenEquals == clause.length() - 1){ return false; }
|
if(firstOpenEquals <= 0 || firstOpenEquals == clause.length() - 1){ return false; }
|
||||||
String name = clause.substring(0, firstOpenEquals);
|
String name = clause.substring(0, firstOpenEquals);
|
||||||
if(!wordToken(name)){ return false; }
|
if(!wordToken(name.trim())){ return false; }
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue