Skip to content

Commit

Permalink
Merge pull request #337 from essamjoubori/master
Browse files Browse the repository at this point in the history
Add semicolons to searcher.js
  • Loading branch information
hsbt committed Feb 24, 2015
2 parents 811c86f + 15060e7 commit 501e293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rdoc/generator/template/json_index/js/searcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ Searcher.prototype = new function() {
/* ----- Utilities ------ */
function splitQuery(query) {
return jQuery.grep(query.split(/(\s+|::?|\(\)?)/), function(string) {
return string.match(/\S/)
return string.match(/\S/);
});
}

function buildRegexps(queries) {
return jQuery.map(queries, function(query) {
return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i')
return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i');
});
}

Expand Down

0 comments on commit 501e293

Please sign in to comment.