@wordpress/wordcount
Version:
WordPress word count utility.
18 lines (17 loc) • 613 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = transposeAstralsToCountableChar;
/**
* Replaces items matched in the regex with character.
*
* @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions
* @param {string} text The string being counted.
*
* @return {string} The manipulated text.
*/
function transposeAstralsToCountableChar(settings, text) {
return text.replace(settings.astralRegExp, 'a');
}
//# sourceMappingURL=transposeAstralsToCountableChar.js.map