From: Simon Ruderich Date: Mon, 9 Apr 2012 12:47:10 +0000 (+0200) Subject: Prevent / in extension in file extension regex. X-Git-Tag: 0.01~30 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=2ab1d3168798b8826c78ad7b76f8175d2ef07022 Prevent / in extension in file extension regex. --- diff --git a/bin/blhc b/bin/blhc index 1a3d55c..829d782 100755 --- a/bin/blhc +++ b/bin/blhc @@ -138,7 +138,7 @@ my $file_extension_regex = qr/ \s \S+ # Filename without extension. \. - ([^\\.,;:\s]+) # File extension. + ([^\/\\.,;:\s]+)# File extension. (?=\s|\\) # At end of word. Can't use \b because some files have non # word characters at the end and because \b matches double # extensions (like .cpp.o). Works always as all lines are diff --git a/t/logs/verbose-build b/t/logs/verbose-build index 1dcb18f..b6372e0 100644 --- a/t/logs/verbose-build +++ b/t/logs/verbose-build @@ -93,3 +93,4 @@ Compiling Test properties Compiling Test sources Compiling with GCC now generates lots of new warnings. Compiling outside source directory - copying needed files +Compiling the test favour in /build/buildd-test_42.47-11-amd64/test-42.47/debian/tmp-test