
* test(migrate): migrate test tooling from chai + mocha to vitest * fix: fix wrong vitest cli command for watch
3 lines
108 B
TypeScript
3 lines
108 B
TypeScript
export function cleanString(str: string) {
|
|
return typeof str !== 'string' ? '' : str.replace(/\s/g, '');
|
|
}
|