From 3d54ed476240702812caf0b6e1ce94bfb0329cb5 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 10 Feb 2021 20:59:58 +0100 Subject: fix models + move schemas in api and gateway --- dist/server-util/src/util/String.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dist/server-util/src/util/String.js (limited to 'dist/server-util/src/util/String.js') diff --git a/dist/server-util/src/util/String.js b/dist/server-util/src/util/String.js new file mode 100644 index 00000000..712328ef --- /dev/null +++ b/dist/server-util/src/util/String.js @@ -0,0 +1,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 \ No newline at end of file -- cgit 1.5.1