Text-LevenshteinXS reviews

cpanratings
 

RSS | Module Info | Add a review of Text-LevenshteinXS

Text-LevenshteinXS (0.03)

This module doesn't handle UTF-8 encoded strings correctly. It only works on ASCII.

#!/usr/bin/perl

use warnings;

use strict;

use utf8;

use Text::LevenshteinXS qw/distance/;

print distance ("♠♡♢♣♤♥♦♧", "♠♡♢♣♥♦♧");

print " ", distance ("saru", "sagru"), "\n";

which should print 1 1 but prints 3 1

See also

rt.cpan.org/Public/Bug/Display.html?i...

1 hidden unhelpful review