From 027801a00accbacefcb8fed059d09340ac5403ec Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 13 Mar 2012 13:14:37 -0700 Subject: doc(search): include method names in corpus --- docs/src/ngdoc.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'docs/src/ngdoc.js') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 1cbd968e..2a86dfbc 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -14,7 +14,7 @@ exports.merge = merge; exports.Doc = Doc; var BOOLEAN_ATTR = {}; -['multiple', 'selected', 'checked', 'disabled', 'readOnly', 'required'].forEach(function(value, key) { +['multiple', 'selected', 'checked', 'disabled', 'readOnly', 'required'].forEach(function(value) { BOOLEAN_ATTR[value] = true; }); @@ -50,7 +50,7 @@ Doc.prototype = { Doc.METADATA_IGNORE.forEach(function(ignore){ keywords[ignore] = true; }); function extractWords(text) { - var tokens = text.toLowerCase().split(/[,\.\`\'\"\s]+/mg); + var tokens = text.toLowerCase().split(/[,\.\`\'\"\#\s]+/mg); tokens.forEach(function(key){ var match = key.match(/^(([\$\_a-z]|ng\:)[\w\_\-]{2,})/); if (match){ @@ -136,7 +136,7 @@ Doc.prototype = { ''; }); text = text.replace(/()([\s\S]*)(<\/doc:scenario>)/mi, - function(_, before, content, after){ + function(_, before, content){ self.scenarios.push(content); return '
' + htmlEscape(content) + '
'; }); @@ -380,7 +380,7 @@ Doc.prototype = { }); } if (restrict.match(/A/)) { - var element = self.element || 'ANY' + var element = self.element || 'ANY'; dom.text('as attribute'); dom.code(function() { dom.text('<' + element + ' '); @@ -392,7 +392,7 @@ Doc.prototype = { } if (restrict.match(/C/)) { dom.text('as class'); - var element = self.element || 'ANY' + var element = self.element || 'ANY'; dom.code(function() { dom.text('<' + element + ' class="'); dom.text(self.shortName); @@ -669,7 +669,6 @@ var KEYWORD_PRIORITY = { '.angular': 7, '.angular.Module': 7, '.angular.module': 8, - '.angular.mock': 9, '.angular.module.ng.$filter': 7, '.angular.module.ng.$rootScope.Scope': 7, '.angular.module.ng': 7, -- cgit v1.2.3