mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 12:12:34 +01:00
CGrammar: Correct handling of empty string literals during beautification
This commit is contained in:
parent
086d5059b1
commit
5d9b45661d
@ -13,7 +13,7 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 684,
|
BUILD_REVISION => 685,
|
||||||
BUILD_DATE => "2014-06-28",
|
BUILD_DATE => "2014-06-28",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -81,7 +81,8 @@ foreach my $arg (@ARGV) {
|
|||||||
$output =~ s/of evaluate/of/g;
|
$output =~ s/of evaluate/of/g;
|
||||||
|
|
||||||
foreach my $quote (@quotes) {
|
foreach my $quote (@quotes) {
|
||||||
$output =~ s/"-*"/"$quote"/;
|
next unless $quote;
|
||||||
|
$output =~ s/"-+"/"$quote"/;
|
||||||
}
|
}
|
||||||
|
|
||||||
print $output;
|
print $output;
|
||||||
|
Loading…
Reference in New Issue
Block a user