Skip to content

Commit 1b9d9c9

Browse files
authored
Merge pull request #194 from KoolTheba/feat/improve-diff-visualization
feat: added diff method for improving visualization
2 parents 29aa5ff + 4ea369d commit 1b9d9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ComparatorDiff.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Props = {
77
};
88

99
export const ComparatorDiff = (props: Props) => {
10-
const diff = Diff.diffWordsWithSpace(props.previous, props.current);
10+
const diff = Diff.diffLines(props.previous, props.current);
1111
return (
1212
<>
1313
{diff.map((part: any, i: number) => (

0 commit comments

Comments
 (0)