Skip to content

Commit

Permalink
Merge pull request #10 from Kal-Elx/add_support_for_non_ascii_characters
Browse files Browse the repository at this point in the history
fix: add support for non ascii characters
  • Loading branch information
Amogh Lele authored Jun 18, 2023
2 parents 46d7787 + fc70dd4 commit 7d5126d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/diffutils/diff_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class DiffUtils {

List<int> matrix;

var c1 = s1.runes.toList();
var c2 = s2.runes.toList();
var c1 = s1.codeUnits.toList();
var c2 = s2.codeUnits.toList();

var p1 = 0;
var p2 = 0;
Expand Down Expand Up @@ -584,8 +584,8 @@ class DiffUtils {
static int levEditDistance(String s1, String s2, int xcost) {
int i;
int half;
var c1 = s1.runes.toList();
var c2 = s2.runes.toList();
var c1 = s1.codeUnits.toList();
var c2 = s2.codeUnits.toList();
var str1 = 0;
var str2 = 0;
var len1 = s1.length;
Expand Down

0 comments on commit 7d5126d

Please sign in to comment.