diff options
author | Brendan O'Dea <bod@debian.org> | 2020-04-27 17:20:47 +1000 |
---|---|---|
committer | Brendan O'Dea <bod@debian.org> | 2020-04-27 17:20:47 +1000 |
commit | bd417fee4964c859cdca1688655bda3d78ec2ec6 (patch) | |
tree | 3d173f2c91cd0fca3e9eade635e9d2b95d33393a /help2man.PL | |
parent | 52a2d9c53d315281b50fc0617a79567c230c6071 (diff) | |
download | help2man-bd417fee4964c859cdca1688655bda3d78ec2ec6.tar.gz |
Allow a second dash to separate package name from version
Diffstat (limited to 'help2man.PL')
-rwxr-xr-x | help2man.PL | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/help2man.PL b/help2man.PL index 86a907b..94333fa 100755 --- a/help2man.PL +++ b/help2man.PL @@ -405,12 +405,14 @@ if ($opt_output) # {GNU,Free} <program> <version> # <program> ({GNU,Free,} <package>) <version> # <program> - {GNU,Free,} <package> <version> +# <program> - {GNU,Free,} <package> - <version> # # and separated from any copyright/author details by a blank line. ($_, $version_text) = ((split /\n+/, $version_text, 2), ''); if (/^(\S+) +\(((?:(?:GNU|Free) +)?[^)]+)\) +(\S.*)$/ or + /^(\S+) +- +((?:(?:GNU|Free) +)?\S.*) +- +(\S.*)$/ or /^(\S+) +- +((?:(?:GNU|Free) +)?\S+) +(\S.*)$/) { $program = program_basename $1; |