Commit 8199616e9406d34349c48b6a0a48bfef05dedbdc
Fix error in suggest-mentions
cel committed on 1/22/2017, 10:05:47 PMParent: 8461f5116e38210324ed4dfd92a4b8fae57407d9
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