|
-
- "use strict";
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.diffSentences = diffSentences;
- exports.sentenceDiff = void 0;
-
-
- var
-
- _base = _interopRequireDefault(require("./base"))
-
- ;
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-
- var sentenceDiff = new
-
- _base
-
- .
-
- default
-
- ();
-
-
- exports.sentenceDiff = sentenceDiff;
-
-
- sentenceDiff.tokenize = function (value) {
- return value.split(/(\S.+?[.!?])(?=\s+|$)/);
- };
-
- function diffSentences(oldStr, newStr, callback) {
- return sentenceDiff.diff(oldStr, newStr, callback);
- }
|