aboutsummaryrefslogtreecommitdiff
path: root/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js8
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
+}