summary refs log tree commit diff
path: root/src/util/String.ts
blob: 55f11e8d90440c271b37cce7754c6bfe88311203 (plain) (blame)
1
2
3
4
5
6
7
import { SPECIAL_CHAR } from "./Regex";

export function trimSpecial(str?: string): string {
	// @ts-ignore
	if (!str) return;
	return str.replace(SPECIAL_CHAR, "").trim();
}