UNPKG

@nickbusey/thelounge

Version:

The self-hosted Web IRC client

5 lines (4 loc) 291 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const matchFormatting = /\x02|\x1D|\x1F|\x16|\x0F|\x11|\x1E|\x03(?:[0-9]{1,2}(?:,[0-9]{1,2})?)?|\x04(?:[0-9a-f]{6}(?:,[0-9a-f]{6})?)?/gi; exports.default = (message) => message.replace(matchFormatting, "").trim();