From 497ba08775f3eaeca22df80ca8c7421bef21fe68 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 16 May 2014 14:23:35 +0100 Subject: [PATCH] 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 --- docs/app/src/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/app/src/search.js b/docs/app/src/search.js index 49d73343..82297953 100644 --- a/docs/app/src/search.js +++ b/docs/app/src/search.js @@ -8,7 +8,7 @@ angular.module('search', []) } $scope.search = function(q) { - var MIN_SEARCH_LENGTH = 3; + var MIN_SEARCH_LENGTH = 2; if(q.length >= MIN_SEARCH_LENGTH) { var results = docsSearch(q); var totalAreas = 0;