diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-04-24 18:36:32 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-04-24 18:36:32 +0200 |
commit | 57f44442ff59a41b56090a907d77d89d49fe5325 (patch) | |
tree | 875862daa0c10c27113230ed57cf4ea7f9060b47 /src/util | |
parent | 1.0.6 (diff) | |
download | server-57f44442ff59a41b56090a907d77d89d49fe5325.tar.xz |
:bug: fix string
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/String.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/String.ts b/src/util/String.ts index 161336f1..bac7905f 100644 --- a/src/util/String.ts +++ b/src/util/String.ts @@ -1,6 +1,7 @@ import { DOUBLE_WHITE_SPACE, SPECIAL_CHAR } from "./Regex"; -export function trimSpecial(str?: string) { +export function trimSpecial(str?: string): string { + // @ts-ignore if (!str) return; return str.replace(SPECIAL_CHAR, "").replace(DOUBLE_WHITE_SPACE, " ").trim(); } |