irwi 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/irwi.gemspec +1 -1
- data/lib/irwi/comparators/diff_lcs.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/irwi.gemspec
CHANGED
@@ -9,7 +9,7 @@ class Irwi::Comparators::DiffLcs < Irwi::Comparators::Base
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def build_changes( old_text, new_text )
|
12
|
-
diffs = Diff::LCS.sdiff( old_text || '', new_text || '' ) # Building symmetric diff sequence
|
12
|
+
diffs = Diff::LCS.sdiff( (old_text || '').mb_chars, (new_text || '').mb_chars ) # Building symmetric diff sequence
|
13
13
|
changes = [] # Array for our result changes
|
14
14
|
|
15
15
|
diffs.each do |change|
|