diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-28 15:12:56 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-28 18:32:36 -1000 |
commit | fd460396edec6969e0dae683021a7bda577f6d79 (patch) | |
tree | 242a8c0e72519badc075165ce98724b64576d5e8 /lib/util.js | |
parent | dd3e70672100b33e373e0fa69e56767b600bb6ec (diff) | |
download | patchfoo-fd460396edec6969e0dae683021a7bda577f6d79.tar.gz patchfoo-fd460396edec6969e0dae683021a7bda577f6d79.zip |
linkify url-encoded refs
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 1 |
1 files changed, 1 insertions, 0 deletions
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 |