Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalluc committed Dec 23, 2022
1 parent bd127e3 commit e6bf46e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/diff_tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def initialize(old_value, new_value)
# and it preserves the whitespace between words.
#
# "cat dog".split /\b/ == ["cat", " ", "dog"]
old_value = old_value.to_s.split /\b/
new_value = new_value.to_s.split /\b/
old_value = old_value.to_s.split(/\b/)
new_value = new_value.to_s.split(/\b/)
@changes = ::Diff::LCS.sdiff(old_value, new_value).chunk(&:action).map do |action, changes|
{
action: action,
Expand Down

0 comments on commit e6bf46e

Please sign in to comment.