sbool mmo2_matchWithTypos(S pattern, S s, int maxTypos default 1) { ret mmo2_matchWithTypos(mmo2_parsePattern(pattern), s, maxTypos); } sbool mmo2_matchWithTypos(MMOPattern pattern, S s, int maxTypos default 1) { if (maxTypos == 0) ret mmo2_match(pattern, s); Int score = mmo2_levenWithSwapsScore(pattern, s); ret score != null && score <= maxTypos; }