Skip to content

Commit 11fd601

Browse files
committed
fix(doc): include short words in keywords
close angular#967 - documentation search has no result for $q
1 parent cb9d4a9 commit 11fd601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/ngdoc.js

+1-1
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)