Browse files

add todo

  • Loading branch information...
1 parent d81bf0d commit d45c6b532ae19e37f83dcdf9781215f1a1513a6d @kazuho committed Sep 22, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Text/Transformer.pm
View
1 lib/Text/Transformer.pm
@@ -33,6 +33,7 @@ sub transform {
my ($self, $text) = @_;
my @ret;
for my $token (split /$self->{match}/, $text) {
+ # FIXME do we have to do this O(n) every time?
for my $handler (@{$self->{handlers}}) {
if ($token =~ /$handler->[0]/) {
push @ret, $handler->[1]->($token);

0 comments on commit d45c6b5

Please sign in to comment.