mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
Factoids: Preserve case of indefinite article in expansions
This commit is contained in:
parent
2b0deffc1c
commit
4311d6662d
@ -477,6 +477,7 @@ sub expand_factoid_vars {
|
||||
|
||||
if ($a) {
|
||||
my $fixed_a = select_indefinite_article $mylist[$line];
|
||||
$fixed_a = ucfirst $fixed_a if $a =~ m/^A/;
|
||||
$action =~ s/$a\$$v$modifier/$fixed_a $mylist[$line]/;
|
||||
} else {
|
||||
$action =~ s/\$$v$modifier/$mylist[$line]/;
|
||||
|
Loading…
Reference in New Issue
Block a user