From 6f804eec51adee90db8f4cc36aa719c9ba64b53e Mon Sep 17 00:00:00 2001 From: Deepak Singh Date: Sun, 12 Apr 2026 09:30:53 +0000 Subject: [PATCH] fix: emoji and supplementary Unicode characters match failure in AhoCorasick (closes #31) --- lib/src/aho_corasick.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/aho_corasick.dart b/lib/src/aho_corasick.dart index 9294d6a..6f8f866 100644 --- a/lib/src/aho_corasick.dart +++ b/lib/src/aho_corasick.dart @@ -56,7 +56,7 @@ class AhoCorasick { final matches = >{}; TrieNode? current = _root; final textLower = text.toLowerCase(); - final units = textLower.codeUnits; + final units = textLower.runes.toList(); for (int i = 0; i < units.length; i++) { final rune = units[i];