From: Vladimír Vondruš Date: Sun, 2 Jan 2022 11:39:16 +0000 (+0100) Subject: documentation/doxygen: allow \xrefitem with numbers in the middle. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=d6a6285314b5df5e0aec55b11dd86277296c569f;p=blog.git 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. --- 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]+""")