UNPKG

htmldiff-js-ie11

Version:

JavaScript port of HtmlDiff.Net which is itself a C# port of HtmlDiff (IE11 compatible fork)

15 lines (13 loc) 334 B
export default class Match { constructor(startInOld, startInNew, size) { this.startInOld = startInOld; this.startInNew = startInNew; this.size = size; } get endInOld() { return this.startInOld + this.size; } get endInNew() { return this.startInNew + this.size; } };