From 2ab1d3168798b8826c78ad7b76f8175d2ef07022 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 9 Apr 2012 14:47:10 +0200 Subject: [PATCH] Prevent / in extension in file extension regex. --- bin/blhc | 2 +- t/logs/verbose-build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.45.2