@yamdbf/dm-manager
Version:
YAMDBF plugin for viewing and replying to DMs sent to your discord bot
14 lines (12 loc) • 346 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalize = void 0;
/**
* Remove any non alphanumeric characters from the given text
* and lowercase it
*/
function normalize(text) {
return text.toLowerCase().replace(/[^a-z0-9]/g, '');
}
exports.normalize = normalize;
//# sourceMappingURL=Util.js.map