From: Axel Beckert Date: Sun, 8 Mar 2009 01:14:35 +0000 (+0000) Subject: Adding two backslashes to a single single and a single double quote inside a regexp... X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=commitdiff_plain;h=93074e126b27d33979448dc756674a6ee74a179a Adding two backslashes to a single single and a single double quote inside a regexp to let editors' syntax highlighting not be confused. They don't change anything when being executed. --- diff --git a/blosxom.cgi b/blosxom.cgi index 5b4ab03..1336e8b 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -2,7 +2,7 @@ # Blosxom # Author: Rael Dornfest (2002-2003), The Blosxom Development Team (2005-2008) -# Version: 2.1.2 ($Id: blosxom.cgi,v 1.92 2009/03/08 01:11:15 xtaran Exp $) +# Version: 2.1.2 ($Id: blosxom.cgi,v 1.93 2009/03/08 01:14:35 xtaran Exp $) # Home/Docs/Licensing: http://blosxom.sourceforge.net/ # Development/Downloads: http://sourceforge.net/projects/blosxom @@ -671,7 +671,7 @@ sub generate { package blosxom; my $template = shift; # Interpolate scalars, namespaced scalars, and hash/hashref scalars - $template =~ s/(\$\w+(?:::\w+)*(?:(?:->)?{(['"]?)[-\w]+\2})?)/"defined $1 ? $1 : ''"/gee; + $template =~ s/(\$\w+(?:::\w+)*(?:(?:->)?{([\'\"]?)[-\w]+\2})?)/"defined $1 ? $1 : ''"/gee; return $template; };