diff-match-patch
diff-match-patch copied to clipboard
Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.
Here is an example that fails: private static void TestBrokenImperfectMatch() { string referenceInput = "diff matching patching"; string referenceOutput = "diff match patch"; string imperfectInput = "diff matching pthing"; diff_match_patch...
The reason of this PR is moving all C# related files under solution, as a target I used `.netstandard2.0`. **Benefits:** * `netstandard` as a target * simplified process of making...
if calling method like `dmp.diff_linesToChars_('hasOwnProperty', ' ')` will throw `TypeError: lineHash.hasOwnProperty is not a function` since the lineHash is a instance of Object, the method can be overwritten while walking...
Is there any possibility of reversing a diff/patch, or `unpatch`, to go backwards? For example: ``` LinkedList diffA_B = diffMatchPatch.diffMain(a, b); LinkedList patchA_B = diffMatchPatch.patchMake(a, diffA_B); String rebuiltA = (String)...
Modified the documentation in DiffMatchPatch.cs to use XML documentation comment formatting. This was done so that Visual Studio's Intellisense can display the documentation. The content of the documentation should not...
I have run into a problem when trying to introduce Content Security Policy (CSP) in my project where, by default, the Diff Match Patch javascript library injects CSS directly into...
The following PR makes the JS algorithm aware of surrogate pairs and will avoid splitting a pair into two different Diff objects. I think there might be more places which...
``` import diff_match_patch as dmp_module old = "hello how are you? very good and you? blablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla. thanks for asking! this text will be removed." delta = "+will be removed.\t=138\t+new text...
This is a great library! Unfortunately it has been ambiguous about what input it wants to accept and what it wants to output. That is, while we know that it's...