mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix(docs): include short words in keywords
Short words like $q are now searchable. Closes #967
This commit is contained in:
parent
92a2e18076
commit
275e5335dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue