3
0
mirror of https://github.com/pragma-/pbot.git synced 2026-02-21 00:38:00 +01:00

Plugin/FuncSed + UrlTitles: minor tweaks

This commit is contained in:
Pragmatic Software 2026-02-19 22:13:56 -08:00
parent 2424bb9fec
commit 6292e49d02
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
3 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ sub func_sed($self, @rest) {
my $text = "@rest";
my $result = eval {
if ($text =~ /^s(.)(.*?)(?<!\\)\1(.*?)(?<!\\)\1(\S*)\s(.*)/p) {
if ($text =~ /^s(.)((?:\\.|(?!\1).)*)\1((?:\\.|(?!\1).)*)\1(\S*)\s(.*)/) {
my ($a, $r, $g, $m, $t) = ($5, "'\"$3\"'", index($4, "g") != -1, $4, $2);
#print "a: $a, r: $r, g: $g, m: $m, t: $t\n";

View File

@ -116,6 +116,7 @@ sub is_ignored_url($self, $url) {
}
sub is_ignored_title($self, $title) {
return 1 if $title =~ m/making sure you're not a bot/i;
return 1 if $title =~ m{reddit - dive into anything}i;
return 1 if $title =~ m{dive into reddit}i;
return 1 if $title =~ m{^Loading}i;

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4937,
BUILD_REVISION => 4938,
BUILD_DATE => "2026-02-19",
};