8 lines
175 B
TypeScript
8 lines
175 B
TypeScript
import { SPECIAL_CHAR } from "./Regex";
|
|
|
|
export function trimSpecial(str?: string): string {
|
|
// @ts-ignore
|
|
if (!str) return;
|
|
return str.replace(SPECIAL_CHAR, "").trim();
|
|
}
|