Commit dbf97a4cbbab26baf350020a6c94bb0c17c5adf2
correct path condition for hashtag search
Ev Bogue committed on 10/15/2017, 4:29:21 PMParent: ded598978fb6fc7a0863a640736660df43649a59
Files changed
client/modules/search.js | changed |
client/modules/search.js | ||
---|---|---|
@@ -69,9 +69,9 @@ | ||
69 | 69 … | } |
70 | 70 … | |
71 | 71 … | exports.create = function (api) { |
72 | 72 … | return function (path) { |
73 | - if(path[0] === '?' || '##') { | |
73 … | + if((path[0] === '?') || (path[1] === '#')) { | |
74 | 74 … | console.log('SEARCHING for ' + path) |
75 | 75 … | var queryStr = path |
76 | 76 … | if (queryStr[0] === '?') { |
77 | 77 … | queryStr = queryStr.substring(1).trim() |
Built with git-ssb-web