diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-03-07 13:19:25 -0500 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-03-08 12:08:59 -0500 |
commit | 606ff997bc4249d4ef0baae2e6336a739c3d64c7 (patch) | |
tree | bbede06b3e031a1a7718c8b6653ff48073a6e709 /lib/util.js | |
parent | 033d27ac3fe92dd16d9284aee9ad98f64e1c770b (diff) | |
download | patchfoo-606ff997bc4249d4ef0baae2e6336a739c3d64c7.tar.gz patchfoo-606ff997bc4249d4ef0baae2e6336a739c3d64c7.zip |
Implement choosing ids for mentions
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/util.js b/lib/util.js index b94ebc2..d0ab97a 100644 --- a/lib/util.js +++ b/lib/util.js @@ -95,3 +95,11 @@ u.tryDecodeJSON = function (json) { return null } } + +u.extractFeedIds = function (str) { + var ids = [] + String(str).replace(u.ssbRefRegex, function (id) { + ids.push(id) + }) + return ids +} |