diff --git a/static/scripts/search.js b/static/scripts/search.js index 73970737..c1bbcd39 100644 --- a/static/scripts/search.js +++ b/static/scripts/search.js @@ -1,4 +1,4 @@ - +var repoExpr = /.+\/.+/; var remoteRepos = new Bloodhound({ queryTokenizer: Bloodhound.tokenizers.whitespace, @@ -27,6 +27,36 @@ $('.typeahead').typeahead({ display: "full_name", source: reposWithDefaults, templates: { + empty: function(obj) { + if (obj.query.match(repoExpr) !== null) { + return [ + "