Comments (2)
There are some short-circuit edge cases here that don't run the tokenizer. count
was intended more as an internal field, but it wouldn't be that much overhead to run the tokenizer for these special cases and include the field for those as well.
from jsdiff.
Released in 2.1.0
from jsdiff.
Related Issues (20)
- Diff.diffChars is not a function HOT 2
- Diiff.js File Missing HOT 3
- Endless loop + hang with 100% CPU usage in execEditLength() when calling structuredPatch()
- "Full Online Demo" Link is broken - 404
- ChainAlert: npm package release (5.1.0) has no matching tag in this repo HOT 1
- HTML in text handling error? HOT 2
- v5.1.0 tag missing HOT 1
- diffLines never returning HOT 1
- Does jsdiff work with Chinese (or other non-English script languages)? HOT 5
- [BUG?] incompact seperate logic when same character HOT 1
- Context option not working? HOT 1
- diffLines adding extra addition/removal HOT 2
- Line diff apply giving extra line in the end when source is empty string HOT 9
- JSDiff treats HTML content as a single line if there is no EOL at each line HOT 4
- [question] Is it possible to preserve the whitespace when using `ignoreWhitespace` ? It breaks the formatting HOT 2
- Suboptimal (O(D^2)) memory usage HOT 10
- Does this work in TypeScript?
- Add timeout? HOT 1
- Expose the "formatPatch" function HOT 7
- Question: Why ONE letter matters in my specific case HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsdiff.