mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 20:22:37 +01:00
Factoids: correct quotemeta2 and make it slightly more readable
This commit is contained in:
parent
5619d30a1b
commit
780d41e628
@ -1078,7 +1078,7 @@ sub cmd_factinfo {
|
||||
|
||||
sub quotemeta2 {
|
||||
my ($text) = @_;
|
||||
$text =~ s/(?!\\)([\[\\\|(){^\$*+?.])/\\$1/g;
|
||||
$text =~ s/(?<!\\) ([\[ \\ \| () { ^ \$ * + ? . ])/\\$1/gx;
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
||||
# These are set by the /misc/update_version script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 4544,
|
||||
BUILD_DATE => "2022-06-25",
|
||||
BUILD_REVISION => 4545,
|
||||
BUILD_DATE => "2022-06-26",
|
||||
};
|
||||
|
||||
sub initialize {}
|
||||
|
Loading…
Reference in New Issue
Block a user