Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix Str.samespace
  • Loading branch information
FROGGS committed Aug 25, 2015
1 parent 1bf053a commit 2ffd6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Str.pm
Expand Up @@ -1031,8 +1031,8 @@ my class Str does Stringy { # declared in BOOTSTRAP


method samespace(Str:D: Str:D $pat) {
my @self-chunks = self.split(rx/\s+/, :all).flat;
my @pat-chunks := $pat.split(rx/\s+/, :all).flat;
my @self-chunks = self.split(rx/\s+/, :all).flat;
my @pat-chunks = $pat.split(rx/\s+/, :all).flat;
loop (my $i = 1; $i < @pat-chunks && $i < @self-chunks; $i += 2) {
@self-chunks[$i] = @pat-chunks[$i];
}
Expand Down

0 comments on commit 2ffd6ab

Please sign in to comment.