3
0
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:
Pragmatic Software 2019-12-15 13:41:50 -08:00
parent cb6cff5bc7
commit 9f065a510d

View File

@ -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;