diff options
| author | Misko Hevery | 2012-05-23 12:05:05 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-06-02 15:44:58 -0700 |
| commit | 275e5335dcecb1d5af014267b61c0b75173f5b68 (patch) | |
| tree | 1025f6a948e8501a8b0b2ecacc364437ad9fbe92 /docs/src/ngdoc.js | |
| parent | 92a2e1807657c69e1372106b0727675a30f4cbd7 (diff) | |
| download | angular.js-275e5335dcecb1d5af014267b61c0b75173f5b68.tar.bz2 | |
fix(docs): include short words in keywords
Short words like $q are now searchable.
Closes #967
Diffstat (limited to 'docs/src/ngdoc.js')
| -rw-r--r-- | docs/src/ngdoc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 6576e619..70884b8f 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -54,7 +54,7 @@ Doc.prototype = { function extractWords(text) { var tokens = text.toLowerCase().split(/[,\.\`\'\"\#\s]+/mg); tokens.forEach(function(key){ - var match = key.match(/^(([\$\_a-z]|ng\:)[\w\_\-]{2,})/); + var match = key.match(/^(([\$\_a-z]|ng\:)[\w\_\-]+)/); if (match){ key = match[1]; if (!keywords[key]) { |
