vuoto
Version:
Modern whitespace normalizer CLI with enhanced output and developer experience - cut the noise, clean the void
17 lines (16 loc) • 406 B
JavaScript
import { INVISIBLE_SEPARATORS } from '../consts.js';
/**
* Removes invisible separators.
* @param input The string to normalize.
*
* @returns The normalized string.
*
* @example
*
* ```ts
* const normalized = normalizeInvisibleSeparators('Hello\u2063World'); // 'HelloWorld'
* ```
*/
export function normalizeInvisibleSeparators(input) {
return input.replaceAll(INVISIBLE_SEPARATORS, '');
}