From e7209a91462a5ebe8db1e25a45cf25562668e71e Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 22 Feb 2020 07:26:23 -0800 Subject: [PATCH] Whoops, the || were drunk --- Plugins/TypoSub.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/TypoSub.pm b/Plugins/TypoSub.pm index cb56fe2a..11e51a5f 100644 --- a/Plugins/TypoSub.pm +++ b/Plugins/TypoSub.pm @@ -79,7 +79,7 @@ sub on_public { my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9); my $t = $replacement; my $i = 0; - defined $_ // last, ++$i, $t =~ s|[\$\\]$i|$_|g for @stuff; + defined $_ || last, ++$i, $t =~ s|[\$\\]$i|$_|g for @stuff; $t }gxe; } else { @@ -88,7 +88,7 @@ sub on_public { my $i = 0; my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9); my $t = $replacement; - defined $_ // last, ++$i, $t =~ s|[\$\\]$i|$_|g for @stuff; + defined $_ || last, ++$i, $t =~ s|[\$\\]$i|$_|g for @stuff; $t }xe; }