Newer
Older
percord / src / util / util / String.ts
@Madeline Madeline on 25 Sep 2022 175 bytes Refactor to mono-repo + upgrade packages
import { SPECIAL_CHAR } from "./Regex";

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