From a637497112bfd23fcd22e1f4146edd1cc98ee5a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 2 Nov 2016 01:39:34 +0200 Subject: Allow numbers in man page names when building links --- src/asciideck_to_manpage.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3