Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit be38ae3

Browse files
Merge pull request #950 from ssbc/fix-ssb-uri-search
Unbreak search functionality from ssb-uri change
2 parents 32f9737 + ca05c2e commit be38ae3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/app/html/search.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ exports.create = function (api) {
5151
function doSearch () {
5252
const prefixes = ['/', '?', '@', '#', '%', 'ssb:']
5353
var value = searchBox.value.trim()
54-
if (prefixes.some(p => prefixes.includes(p))) {
54+
55+
if (prefixes.some(p => value.startsWith(p))) {
5556
if (value.startsWith('@') && value.length < 30) {
5657
// probably not a key
5758
} else if (value.startsWith('ssb:')) {

0 commit comments

Comments
 (0)