Skip to content

Commit 4ea369d

Browse files
committed
feat: added diff method for improving visualization
- Related #177
1 parent 29aa5ff commit 4ea369d

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)