From 9f065a510dd4fdac4e85c53a9ed583ec08233ff1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 15 Dec 2019 13:41:50 -0800 Subject: [PATCH] wikipedia.pl: fix unescaped { in regex --- modules/wikipedia.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wikipedia.pl b/modules/wikipedia.pl index c1ac6ab2..08cb2395 100755 --- a/modules/wikipedia.pl +++ b/modules/wikipedia.pl @@ -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>//g;