mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +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
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 684,
|
||||
BUILD_REVISION => 685,
|
||||
BUILD_DATE => "2014-06-28",
|
||||
};
|
||||
|
||||
|
@ -81,7 +81,8 @@ foreach my $arg (@ARGV) {
|
||||
$output =~ s/of evaluate/of/g;
|
||||
|
||||
foreach my $quote (@quotes) {
|
||||
$output =~ s/"-*"/"$quote"/;
|
||||
next unless $quote;
|
||||
$output =~ s/"-+"/"$quote"/;
|
||||
}
|
||||
|
||||
print $output;
|
||||
|
Loading…
Reference in New Issue
Block a user