diff-match-patch
diff-match-patch copied to clipboard
Failed assertion during match call
The following code throws an exception:
String text = "schoener wohnen in altona? stadtentwicklung im 20. und 21. jahrhundert";
String query = "auf motivsuche im kraftwerk bille";
DiffMatchPatch().match(text, query, 0);
The exception is:
flutter: 'package:diff_match_patch/src/match.dart': Failed assertion: line 105 pos 10: 'BITS_PER_INT == 0 ||
flutter: pattern.length <= BITS_PER_INT': is not true.
It seems that the query shouldn't be longer than 32 chars.