🐛 fix string

This commit is contained in:
Flam3rboy
2021-04-24 18:36:32 +02:00
parent 0340757d78
commit 57f44442ff
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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();
}