[Lxr-commits] CVS: lxr/lib/LXR Template.pm,1.22,1.23
Brought to you by:
ajlittoz
From: Andre-Littoz <ajl...@us...> - 2013-04-12 14:52:00
|
Update of /cvsroot/lxr/lxr/lib/LXR In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15272/lib/LXR Modified Files: Template.pm Log Message: Template.pm: optimise for speed Replace regexp match by direct test for substring Index: Template.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Template.pm,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- Template.pm 24 Jan 2013 15:09:52 -0000 1.22 +++ Template.pm 12 Apr 2013 14:51:57 -0000 1.23 @@ -981,7 +981,7 @@ , 'off' => $modeoff } ); - } elsif ($who eq 'source' && $pathname !~ m|/$|) { + } elsif ($who eq 'source' && substr($pathname, -1) ne '/') { $modelink = diffref($modename, "modes", $pathname); $modecss = "modes"; $modelink =~ m!href="(.*?)(\?|">)!; # extract href target as action |