Alexandre Julliard : lxr: Only markup potential filenames surrounded by spaces.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jul 17 12:45:19 CDT 2014


Module: tools
Branch: master
Commit: d2264373dc9461f1962aafbaa7d37018a28a3403
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=d2264373dc9461f1962aafbaa7d37018a28a3403

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jun 30 21:12:53 2014 +0200

lxr: Only markup potential filenames surrounded by spaces.

Otherwise it considers a version name like wine-1.7 to be a filename.

---

 lxr/lib/LXR/Markup.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxr/lib/LXR/Markup.pm b/lxr/lib/LXR/Markup.pm
index 6c5a33c..94d0c78 100644
--- a/lxr/lib/LXR/Markup.pm
+++ b/lxr/lib/LXR/Markup.pm
@@ -111,7 +111,7 @@ sub markupstring {
 	$string =~ s/(<)(.*@.*)(>)/$1<a class='offshore' href=\"mailto:$2\">$2<\/a>$3/g;
 
 	# HTMLify file names, assuming file is in the directory defined by $virtp.
-	$string =~ s{\b([\w\-_\/]+\.\w{1,5}|README)\b}
+	$string =~ s{\s([\w\-_\/]+\.\w{1,5}|README)\s}
 				{fileref($1, '', $virtp . $1);}ge;
 
 	return ($string);




More information about the wine-cvs mailing list