File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -621,42 +621,42 @@ sub _normalize_path # so that plain string compare can be used
621
621
# be in quotes which can also have escaping.
622
622
sub _split_text {
623
623
my $val = shift ;
624
- my @vals = grep { $_ ne ' ' } split (/ ([;\\ "])/ , $val );
624
+ my @vals = grep { $_ ne q{ } } split (/ ([;\\ "])/ , $val );
625
625
my @chunks ;
626
626
# divide it up into chunks to be processed.
627
627
my $in_string = 0;
628
628
my @current_string ;
629
629
for (my $i = 0; $i < @vals ; $i ++) {
630
630
my $chunk = $vals [$i ];
631
631
if ($in_string ) {
632
- if ($chunk eq ' \\ ' ) {
632
+ if ($chunk eq q{ \\ } ) {
633
633
# don't care about next char probably.
634
634
# having said that, probably need to be appending to the chunks
635
635
# just dropping this.
636
636
$i ++;
637
637
if ($i < @vals ) {
638
638
push @current_string , $vals [$i ];
639
639
}
640
- } elsif ($chunk eq ' " ' ) {
640
+ } elsif ($chunk eq q{ " } ) {
641
641
$in_string = 0;
642
642
}
643
643
else {
644
644
push @current_string , $chunk ;
645
645
}
646
646
} else {
647
- if ($chunk eq ' " ' ) {
647
+ if ($chunk eq q{ " } ) {
648
648
$in_string = 1;
649
649
}
650
- elsif ($chunk eq ' ; ' ) {
651
- push @chunks , join (' ' , @current_string );
650
+ elsif ($chunk eq q{ ; } ) {
651
+ push @chunks , join (q{ } , @current_string );
652
652
@current_string = ();
653
653
}
654
654
else {
655
655
push @current_string , $chunk ;
656
656
}
657
657
}
658
658
}
659
- push @chunks , join (' ' , @current_string ) if @current_string ;
659
+ push @chunks , join (q{ } , @current_string ) if @current_string ;
660
660
s / ^\s +// for @chunks ;
661
661
return \@chunks ;
662
662
}
You can’t perform that action at this time.
0 commit comments