Skip to content

Commit

Permalink
Smartify method name search detection
Browse files Browse the repository at this point in the history
Fixes missing results for all ops that start with a dot.
  • Loading branch information
zoffixznet committed Apr 27, 2018
1 parent 1913294 commit 32e15f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/search_template.js
Expand Up @@ -169,7 +169,7 @@ $.extend( $.ui.autocomplete, {
current_search = term.toLowerCase();

var search_method = false;
if (term.startsWith(".")) {
if (term.match(/^\s*\.[a-zA-Z][a-zA-Z0-9_-]+\s*$/)) {
search_method = true;
term = term.substr(1);
}
Expand Down

0 comments on commit 32e15f6

Please sign in to comment.