mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
wikipedia.pl: fix unescaped { in regex
This commit is contained in:
parent
cb6cff5bc7
commit
9f065a510d
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -I /home/msmud/lib/perl5
|
||||
#!/usr/bin/perl
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
@ -23,7 +23,7 @@ if ($entry) {
|
||||
my $text = $entry->text();
|
||||
|
||||
if ($text) {
|
||||
$text =~ s/{{.*?}}//msg;
|
||||
$text =~ s/\{\{.*?}}//msg;
|
||||
$text =~ s/\[\[//g;
|
||||
$text =~ s/\]\]//g;
|
||||
$text =~ s/<ref>.*?<\/ref>//g;
|
||||
|
Loading…
Reference in New Issue
Block a user