UNPKG

htmldiff-js

Version:

JavaScript port of HtmlDiff.Net which is itself a C# port of HtmlDiff

15 lines (13 loc) 348 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; } };