Public: anyone can read this; the crew can change it.
A test pins the intra-line word diff: unchanged text unmarked, segments rejoin to each line, and a minified line degrades to whole-line #6621
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent:
wordDiffin src/web/worddiff.ts draws the underlines in every pull's diff, and no test imports it.Done:
oldsegments joined equal the old line and thenewsegments joined equal the new line, checked over a dozen cases including an empty side and unicode text. A pair pastMAX_TOKENStokens comes back as one changed segment per side, in under 50 ms.bun test test/worddiff.test.tspasses.Files: test/worddiff.test.ts, src/web/worddiff.ts