astro-reactive-form/packages/form/test/utils/index.ts
Fazza Razaq Amiarso 59d76181db
test(migrate): migrate test tooling from chai + mocha to vitest (#203)
* test(migrate): migrate test tooling from chai + mocha to vitest

* fix: fix wrong vitest cli command for watch
2022-11-21 13:15:58 +01:00

3 lines
108 B
TypeScript

export function cleanString(str: string) {
return typeof str !== 'string' ? '' : str.replace(/\s/g, '');
}