diff options
author | Loïc Hoguin <[email protected]> | 2016-11-02 01:39:34 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-11-02 01:39:34 +0200 |
commit | a637497112bfd23fcd22e1f4146edd1cc98ee5a6 (patch) | |
tree | 87aca2b9cc6ab7306efd48cab513d6df710023f0 | |
parent | 9f6a71bca90a714de1122a8a1f6783391b0c7f69 (diff) | |
download | asciideck-a637497112bfd23fcd22e1f4146edd1cc98ee5a6.tar.gz asciideck-a637497112bfd23fcd22e1f4146edd1cc98ee5a6.tar.bz2 asciideck-a637497112bfd23fcd22e1f4146edd1cc98ee5a6.zip |
Allow numbers in man page names when building links
-rw-r--r-- | src/asciideck_to_manpage.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asciideck_to_manpage.erl b/src/asciideck_to_manpage.erl index 33187ea..05d8173 100644 --- a/src/asciideck_to_manpage.erl +++ b/src/asciideck_to_manpage.erl @@ -163,7 +163,7 @@ man_table_contents_cols([{cell, _CAttrs, [{p, _PAttrs, Text, _PAnn}], _CAnn}|Tai man_format(Text) when is_binary(Text) -> Text; man_format({rel_link, #{target := Link}, Text, _}) -> - case re:run(Text, "^([-_:.a-zA-Z]*)(\\([0-9]\\))$", [{capture, all, binary}]) of + case re:run(Text, "^([-_:.a-zA-Z0-9]*)(\\([0-9]\\))$", [{capture, all, binary}]) of nomatch -> [Text, " (", Link, ")"]; {match, [_, ManPage, ManSection]} -> ["\\fB", ManPage, "\\fR", ManSection] end; |