From d6a6285314b5df5e0aec55b11dd86277296c569f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 2 Jan 2022 12:39:16 +0100 Subject: [PATCH] documentation/doxygen: allow \xrefitem with numbers in the middle. In Magnum I used to have \xrefitem aliases such as \requires_gles20 so the current regex worked, but when adding \requires_gles20_only it didn't work anymore. Such a stupid oversight, sorry to whoever else tripped up on that as well. Not updating any test case because regexes are write only anyway. --- documentation/doxygen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/doxygen.py b/documentation/doxygen.py index d8b2df22..71432634 100755 --- a/documentation/doxygen.py +++ b/documentation/doxygen.py @@ -145,7 +145,7 @@ copy a link to the result using ⌘ 'VERSION_LABELS': False } -xref_id_rx = re.compile(r"""(.*)_1(_[a-z-]+[0-9]+|@)$""") +xref_id_rx = re.compile(r"""(.*)_1(_[a-z-0-9]+|@)$""") slugify_nonalnum_rx = re.compile(r"""[^\w\s-]""") slugify_hyphens_rx = re.compile(r"""[-\s]+""") -- 2.30.2