@wordpress/wordcount
Version:
WordPress word count utility.
15 lines (14 loc) • 403 B
JavaScript
/**
* Internal dependencies
*/
/**
* 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 stripRemovables(settings, text) {
return text.replace(settings.removeRegExp, '');
}
//# sourceMappingURL=stripRemovables.js.map