Skip to content
This repository was archived by the owner on Mar 22, 2020. It is now read-only.

Commit 3eca180

Browse files
committed
Removing unneeded comment
1 parent bffd304 commit 3eca180

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

src/Formatter.php

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -195,34 +195,7 @@ private function postFormatReplace($text, $replacements)
195195
foreach ($replacements as $replacement) {
196196
$text = preg_replace('/'.$replacement[0].'/', $replacement[1], $text);
197197
}
198-
/*
199-
# do any country specific rules
200-
foreach my $ra_fromto ( @$raa_rules ){
201-
try {
202-
my $regexp = qr/$ra_fromto->[0]/;
203-
#say STDERR 'text: ' . $text;
204-
#say STDERR 're: ' . $regexp;
205-
my $replacement = $ra_fromto->[1];
206-
207-
# ultra hack to do substitution
208-
# limited to $1 and $2, should really be a while loop
209-
# doing every substitution
210-
211-
if ($replacement =~ m/\$\d/){
212-
if ($text =~ m/$regexp/){
213-
my $tmp1 = $1;
214-
my $tmp2 = $2;
215-
$replacement =~ s/\$1/$tmp1/;
216-
$replacement =~ s/\$2/$tmp2/;
217-
}
218-
}
219-
$text =~ s/$regexp/$replacement/;
220-
}
221-
catch {
222-
warn "invalid replacement: " . join(', ', @$ra_fromto)
223-
};
224-
}
225-
*/
198+
226199
return $text;
227200
}
228201

0 commit comments

Comments
 (0)