working rss feed to nostr publish
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// Thanks to Andrew Clover:
|
||||
// http://stackoverflow.com/questions/3561493
|
||||
// /is-there-a-regexp-escape-function-in-javascript
|
||||
|
||||
"use strict";
|
||||
|
||||
var re = /[-/\\^$*+?.()|[\]{}]/g;
|
||||
|
||||
module.exports = function (str) { return String(str).replace(re, "\\$&"); };
|
||||
Reference in New Issue
Block a user