3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-25 13:29:29 +01:00

Factoids: correct quotemeta2 and make it slightly more readable

This commit is contained in:
Pragmatic Software 2022-06-26 08:42:01 -07:00
parent 5619d30a1b
commit 780d41e628
2 changed files with 3 additions and 3 deletions

View File

@ -1078,7 +1078,7 @@ sub cmd_factinfo {
sub quotemeta2 { sub quotemeta2 {
my ($text) = @_; my ($text) = @_;
$text =~ s/(?!\\)([\[\\\|(){^\$*+?.])/\\$1/g; $text =~ s/(?<!\\) ([\[ \\ \| () { ^ \$ * + ? . ])/\\$1/gx;
return $text; return $text;
} }

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script # These are set by the /misc/update_version script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 4544, BUILD_REVISION => 4545,
BUILD_DATE => "2022-06-25", BUILD_DATE => "2022-06-26",
}; };
sub initialize {} sub initialize {}