Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Sep 22, 2010
1 parent d81bf0d commit d45c6b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Text/Transformer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d45c6b5

Please sign in to comment.