We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 176b94a commit a87ff43Copy full SHA for a87ff43
src/librustdoc/html/static/js/search.js
@@ -1559,7 +1559,8 @@ class DocSearch {
1559
// If there is more than one element or only separators in the query,
1560
// we switch to literalSearch in any case.
1561
query.literalSearch = parserState.totalElems > 1 ||
1562
- userQuery.replace(/[=, ]/g, "") === "";
+ /^[=, ]+$/.test(userQuery);
1563
+
1564
}
1565
query.foundElems = query.elems.length + query.returned.length;
1566
query.totalElems = parserState.totalElems;
0 commit comments