hardlounge/client/js/libs/handlebars/ircmessageparser/cleanIrcMessage.js
2017-11-19 18:19:52 +02:00

5 lines
199 B
JavaScript

"use strict";
// TODO: This does not strip hex based colours - issue #1413
module.exports = (message) => message.replace(/\x02|\x1D|\x1F|\x16|\x0F|\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?/g, "").trim();