1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00
server/dist/util/String.js
Flam3rboy ea41892fef 🔧 build
2021-02-05 22:01:01 +01:00

10 lines
445 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.trimSpecial = exports.SPECIAL_CHAR = exports.DOUBLE_WHITE_SPACE = void 0;
exports.DOUBLE_WHITE_SPACE = /\s\s+/g;
exports.SPECIAL_CHAR = /[@#`:\r\n\t\f\v\p{C}]/gu;
function trimSpecial(str) {
return str.replace(exports.SPECIAL_CHAR, "").replace(exports.DOUBLE_WHITE_SPACE, " ").trim();
}
exports.trimSpecial = trimSpecial;
//# sourceMappingURL=String.js.map