summary refs log tree commit diff
path: root/dist/util/String.js
blob: 712328ef01a4667eaa956977c8ae3eb73afdd9f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
"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