aboutsummaryrefslogtreecommitdiff
path: root/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'common.js')
-rw-r--r--common.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.js b/common.js
index 4e950e6..1756387 100644
--- a/common.js
+++ b/common.js
@@ -101,3 +101,9 @@ module.exports.listChangeCommand = (action, list, status) => new Object({
}
}
})
+
+module.exports.stripPings = str => str
+ .replace(/<@!/g, "<@​!")
+ .replace(/<@&/g, "<@​&")
+ .replace(/@here/g, "@​here")
+ .replace(/@everyone/g, "@​everyone")