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
1 changed files with 2 additions and 2 deletions

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;