Our great sponsors
-
diff-match-patch
Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
If you need to know exactly what the diff is, you might want to use something like github.com/google/diff-match-patch. Otherwise, a simple Levenshtein distance would suffice. This library seems to have a whole bunch of string distances implemented. Hope this helps!
If you need to know exactly what the diff is, you might want to use something like github.com/google/diff-match-patch. Otherwise, a simple Levenshtein distance would suffice. This library seems to have a whole bunch of string distances implemented. Hope this helps!
Related posts
- Ideas for approaching pattern matching/distance problem
- Form editing, changelogs, and progressive diffing - am I reinventing the wheel?
- Here’s my ~600 byte (minified, gzipped) package for diffing two strings.
- Show HN: Character-Based Git Conflict Resolution
- Keeping track of changes made to xml file.