sbd-fork
Version:
Split text into sentences with Sentence Boundary Detection (SBD).
20 lines (19 loc) • 560 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var stringHelper = /** @class */ (function () {
function stringHelper() {
}
stringHelper.endsWithChar = function (word, c) {
if (c.length > 1) {
return c.indexOf(word.slice(-1)) > -1;
}
return word.slice(-1) === c;
};
;
stringHelper.endsWith = function (word, end) {
return word.slice(word.length - end.length) === end;
};
;
return stringHelper;
}());
exports.default = stringHelper;