From 0da1e02da1743b4a26c0bdda6cb4424f98b930b1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 18 Jan 2020 11:41:49 -0800 Subject: [PATCH] modules/math.pl: understand "ultimate question" a bit better --- modules/math.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/math.pl b/modules/math.pl index b57cf13a..eb315f4e 100755 --- a/modules/math.pl +++ b/modules/math.pl @@ -25,8 +25,8 @@ if ($#ARGV < 0) $arguments = join(' ', @ARGV); my $orig_arguments = $arguments; -$arguments =~ s/(the )*answer.*question of life(,? the universe,? and everything)?\s?/42/gi; -$arguments =~ s/(the )*meaning of (life|existence|everything)?/42/gi; +$arguments =~ s/(the )*(ultimate )*answer.*question of life(,? the universe,? and everything)?\s?/42/gi; +$arguments =~ s/(the )*(ultimate )*meaning of (life|existence|everything)?/42/gi; if ($arguments =~ s/(\d+\s?)([^ ]+)\s+to\s+([^ ]+)\s*$/$1/) { @conversion = ($2, $3);