UNPKG

@hugsmidjan/htmldiff-js

Version:

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

16 lines (13 loc) 302 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; } }