Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 497ba08

Browse files
docs(search): set minimum length to 2
With the minimum search length set to 3, it was not possible to search for `$q`. Changing this to 2 fixes that without really upsetting the search display, since we only display the first 40 API and 14 non-API items anyway. Closes #3078
1 parent eaaf496 commit 497ba08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/app/src/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ angular.module('search', [])
88
}
99

1010
$scope.search = function(q) {
11-
var MIN_SEARCH_LENGTH = 3;
11+
var MIN_SEARCH_LENGTH = 2;
1212
if(q.length >= MIN_SEARCH_LENGTH) {
1313
var results = docsSearch(q);
1414
var totalAreas = 0;

0 commit comments

Comments
 (0)