Prioritize whole words in inline string diffs - #114
Open
jamilahmadzai wants to merge 1 commit into
Open
Conversation
jamilahmadzai
marked this pull request as ready for review
July 20, 2026 08:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #29
Summary
fast-diff, keeping short changed words intact.Validation
npx ava test/diff.js— 58 passed on Node.js 24npx --yes --package=node@16 -- node node_modules/ava/cli.js test/diff.js— 58 passednpx --yes --package=node@22 --call "node --version && npm test"— lint passed with 4 existing TODO warnings; all 297 tests passedgit diff --checkThe repository lint dependency uses the deprecated
util.isDate()API, which was removed in Node.js 24. The full gate was therefore run under Node.js 22, a runtime where that legacy dependency still works.IssueHunt Summary
Referenced issues
This pull request has been submitted to: