@wordpress/wordcount
Version:
WordPress word count utility.
21 lines (19 loc) • 507 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = stripConnectors;
/**
* 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.
*/
function stripConnectors(settings, text) {
return text.replace(settings.connectorRegExp, ' ');
}
//# sourceMappingURL=stripConnectors.js.map