mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 07:19:23 +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 {
|
sub quotemeta2 {
|
||||||
my ($text) = @_;
|
my ($text) = @_;
|
||||||
$text =~ s/(?!\\)([\[\\\|(){^\$*+?.])/\\$1/g;
|
$text =~ s/(?<!\\) ([\[ \\ \| () { ^ \$ * + ? . ])/\\$1/gx;
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 {}
|
||||||
|
Loading…
Reference in New Issue
Block a user