@wordpress/wordcount
Version:
WordPress word count utility.
13 lines • 410 B
TypeScript
/**
* Internal dependencies
*/
import type { Settings } from './types';
/**
* Replaces items matched in the regex with spaces.
*
* @param settings The main settings object containing regular expressions
* @param text The string being counted.
* @return The manipulated text.
*/
export default function stripSpaces(settings: Settings, text: string): string;
//# sourceMappingURL=stripSpaces.d.ts.map