Comparing version 1.0.2 to 1.0.3
@@ -105,3 +105,3 @@ var diff = require('fast-diff'); | ||
} else { | ||
nextOp = iter.next(end - start); | ||
nextOp = iter.next(end - index); | ||
delta.push(nextOp); | ||
@@ -108,0 +108,0 @@ } |
{ | ||
"name": "rich-text", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Format for representing rich text documents and changes.", | ||
@@ -5,0 +5,0 @@ "author": "Jason Chen <jhchen7@gmail.com>", |
@@ -51,2 +51,8 @@ var Delta = require('../../lib/delta'); | ||
it('start and end multiple chop', function () { | ||
var slice = new Delta().insert('0123', { bold: true }).insert('4567').slice(3, 5); | ||
var expected = new Delta().insert('3', { bold: true }).insert('4'); | ||
expect(slice).to.deep.equal(expected); | ||
}); | ||
it('start and end', function () { | ||
@@ -53,0 +59,0 @@ var slice = new Delta().retain(2).insert('A', { bold: true }).insert('B').slice(2, 3); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62928
1445