jsdiff icon indicating copy to clipboard operation
jsdiff copied to clipboard

A javascript text differencing implementation.

Results 32 jsdiff issues
Sort by recently updated
recently updated
newest added

```ts it('diffs markdown (2)', () => { const a = '## AIMD generated content\n\nJust for fun, here is the same article scrambled using AIMD anti-AI detection techniques:'; const b =...

![image](https://cloud.githubusercontent.com/assets/27538/22975790/db0867ce-f355-11e6-838e-2f13c84a1857.png) The example above showcases what I'm trying to do: the first line has two insertions ("very", "correct and"), while the second line only has one insertion ("and correct"). Is...

major-new-feature

It's confusing and shouldn't be necessary. Steps to this: 1. Figure out precisely what the scenario was in https://github.com/kpdecker/jsdiff/issues/141 that was tripping up @soulbeing. (Did the *diff* file use `\r\n`...

Given original text of: ``` r ggplot(data = sd_oral_richpk, aes(x = Weight)) + geom_histogram(binwidth = 4, color = "black", fill = "grey") + theme_bw() + base_theme() ``` with a final...

diffWords behaviour

I was noticing an endless hang when using mocha and filed [this issue](https://github.com/mochajs/mocha/issues/1915) and managed to run down the problem in mocha to the use of jsdiff. Their use of...

performance

While you can create a unified diff with `createPatch` and then apply that to another string using `applyPatch`, there doesn't seem to be a way to apply Change Objects. I...

major-new-feature

Resolves https://github.com/kpdecker/jsdiff/issues/468, and makes the logic for fuzzy matching of hunks more intuitive and more likely to do reasonable things when applying patches to slightly modified files.

## Minimum code to reproduce ```javascript const { createPatch } = require('diff'); const oldContent = `1st line.\n2nd line.\n3rd line.`; const newContent = `Z11 thing.\nA New thing.\n2nd line.\nNEW LINE.\n3rd line.\n\nSOMETHING ELSE.`;...

I'd like to suggest adding a "merge" option to the default diff methods to make diffs more readable/useful. Here's a diffWords & diffChars example visualizing current behavior vs my proposed...

I have 2 text that I want to compare with the `diffWord` function Old text : ``` The General Court, informally known as the European General Court (EGC), is a...