Commit afb86dcf033be6fdcb0a54989c55a37a00162d23
Merge branch 'master' of ssb://%s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc=.sha256
mix irving committed on 1/23/2017, 11:15:03 AMParent: 80807add560dfbbd3fe40aa17eac62b859624063
Parent: 8199616e9406d34349c48b6a0a48bfef05dedbdc
Files changed
modules_core/suggest-mentions.js | changed |
modules_core/suggest-mentions.js | |||
---|---|---|---|
@@ -54,9 +54,9 @@ | |||
54 | 54 … | ||
55 | 55 … | } else if(/^\//.test(query)) { | |
56 | 56 … | var tabs = [].concat.apply([], api.builtin_tabs()) | |
57 | 57 … | cb(null, tabs.filter(function (name) { | |
58 | - return name.substr(0, query.length) === query | ||
58 … | + return name && name.substr(0, query.length) === query | ||
59 | 59 … | }).map(function (name) { | |
60 | 60 … | return { | |
61 | 61 … | title: name, | |
62 | 62 … | value: name, |
Built with git-ssb-web