summaryrefslogtreecommitdiff
path: root/dh_installmanpages
diff options
context:
space:
mode:
authorPeter Pentchev <roam@ringlet.net>2016-04-08 17:42:25 +0300
committerNiels Thykier <niels@thykier.net>2016-05-01 08:02:11 +0000
commit8f05076e7b406e1e57b3f2becea00c75db183b28 (patch)
tree94df775aebcceb10c227d26ee096b102cdff4f73 /dh_installmanpages
parentcab556dbff039108e206563d29a37c115488687c (diff)
downloaddebhelper-8f05076e7b406e1e57b3f2becea00c75db183b28.tar.gz
Drop .* from the beginning of unanchored regular expressions
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installmanpages')
-rwxr-xr-xdh_installmanpages4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_installmanpages b/dh_installmanpages
index 7f83089a..2583002b 100755
--- a/dh_installmanpages
+++ b/dh_installmanpages
@@ -158,13 +158,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if ($install) {
my $extdir="share";
- my ($section)=$basename=~m/.*\.([1-9])/;
+ my ($section)=$basename=~m/\.([1-9])/;
my $destdir="$tmp/usr/$extdir/man/man$section/";
# Handle translated man pages.
my $instname=$basename;
- my ($langcode)=$basename=~m/.*\.([a-z][a-z])\.([1-9])/;
+ my ($langcode)=$basename=~m/\.([a-z][a-z])\.([1-9])/;
if (defined $langcode && $langcode ne '') {
$destdir="$tmp/usr/$extdir/man/$langcode/man$section/";
$instname=~s/\.$langcode\./\./;