yoastseo
Version:
Yoast client-side content analysis
20 lines (18 loc) • 528 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
// These are sentence terminators, that never should be in the middle of a word.
const sentenceTerminators = /[.?!:;,]/g;
/**
* Replaces sentence terminators from the text.
*
* @param {String} text The text to remove the terminators from.
*
* @returns {String} The sanitized text.
*/
function _default(text) {
return text.replace(sentenceTerminators, "");
}
//# sourceMappingURL=removeSentenceTerminators.js.map