Skip to content

Commit 275e533

Browse files
committed
fix(docs): include short words in keywords
Short words like $q are now searchable. Closes angular#967
1 parent 92a2e18 commit 275e533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/ngdoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Doc.prototype = {
5454
function extractWords(text) {
5555
var tokens = text.toLowerCase().split(/[,\.\`\'\"\#\s]+/mg);
5656
tokens.forEach(function(key){
57-
var match = key.match(/^(([\$\_a-z]|ng\:)[\w\_\-]{2,})/);
57+
var match = key.match(/^(([\$\_a-z]|ng\:)[\w\_\-]+)/);
5858
if (match){
5959
key = match[1];
6060
if (!keywords[key]) {

0 commit comments

Comments
 (0)