From fd460396edec6969e0dae683021a7bda577f6d79 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 28 May 2017 15:12:56 -1000 Subject: linkify url-encoded refs --- lib/util.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/util.js') diff --git a/lib/util.js b/lib/util.js index 267df9f..e8fc435 100644 --- a/lib/util.js +++ b/lib/util.js @@ -4,6 +4,7 @@ var h = require('hyperscript') var u = exports u.ssbRefRegex = /((?:@|%|&|ssb:\/\/%)[A-Za-z0-9\/+]{43}=\.[\w\d]+)/g +u.ssbRefEncRegex = /((?:ssb:\/\/)?(?:[@%&]|%26|%40|%25)(?:[A-Za-z0-9\/+]|%2[fF]|%2[bB]){43}(?:=|%3[dD])\.[\w\d]+)/g u.isRef = function (str) { if (!str) return false -- cgit v1.2.3