mirror of https://github.com/apache/lucene.git
Fixed case where wildcard character at start of string.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150923 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
259f0f8e2f
commit
eb9bc807da
|
@ -40,7 +40,7 @@ function doCheckLuceneQuery(queryField)
|
|||
}
|
||||
|
||||
// check wildcards are used properly
|
||||
matches = query.match(/^[\*]*$|([\s]\*)/);
|
||||
matches = query.match(/^[\*]*$|[\s]\*|^\*[^\s]/);
|
||||
if(matches != null && matches.length > 0)
|
||||
{
|
||||
if(alertUser) alert("Invalid search query! The wildcard (*) character must be preceded by at least one alphabet or number. Please try again.")
|
||||
|
|
Loading…
Reference in New Issue