8264191: Javadoc search is broken in Internet Explorer

Reviewed-by: jjg
This commit is contained in:
Hannes Wallnöfer 2021-03-30 12:21:49 +00:00
parent 6e74c3ab94
commit af02883575

View File

@ -258,7 +258,7 @@ function doSearch(request, response) {
function searchIndex(indexArray, category, nameFunc) {
var primaryResults = searchIndexWithMatcher(indexArray, camelCaseMatcher, category, nameFunc);
result = result.concat(primaryResults);
if (primaryResults.length <= MIN_RESULTS && camelCaseMatcher.flags.indexOf("i") === -1) {
if (primaryResults.length <= MIN_RESULTS && !camelCaseMatcher.ignoreCase) {
var secondaryResults = searchIndexWithMatcher(indexArray, fallbackMatcher, category, nameFunc);
result = result.concat(secondaryResults.filter(function (item) {
return primaryResults.indexOf(item) === -1;