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:
Kelvin Tan 2004-01-13 07:01:32 +00:00
parent 259f0f8e2f
commit eb9bc807da
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ function doCheckLuceneQuery(queryField)
} }
// check wildcards are used properly // check wildcards are used properly
matches = query.match(/^[\*]*$|([\s]\*)/); matches = query.match(/^[\*]*$|[\s]\*|^\*[^\s]/);
if(matches != null && matches.length > 0) 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.") if(alertUser) alert("Invalid search query! The wildcard (*) character must be preceded by at least one alphabet or number. Please try again.")