From 06e96230e9b0bffcbc29c4202eebcadfacbf2b35 Mon Sep 17 00:00:00 2001 From: Claudio Wunder Date: Wed, 14 Aug 2024 20:09:42 +0200 Subject: [PATCH] fix: fixed url parsing for types --- src/queries.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queries.mjs b/src/queries.mjs index 5222439..115c9e2 100644 --- a/src/queries.mjs +++ b/src/queries.mjs @@ -175,7 +175,7 @@ createQueries.QUERIES = { normalizeTypes: /(\{|<)(?! )[a-zA-Z0-9.| \[\]\\]+(?! )(\}|>)/g, // ReGex to match the type API type references that got already parsed // so that they can be transformed into HTML links - linksWithTypes: /\[`<([a-zA-Z0-9.| \\[\]]+)>`\]\((.*)\)/, + linksWithTypes: /\[`<([a-zA-Z0-9.| \\[\]]+)>`\]\((\S+)\)/g, // ReGeX for handling Stability Indexes Metadata stabilityIndex: /^Stability: ([0-5])(?:\s*-\s*)?(.*)$/s, // ReGeX for handling the Stability Index Prefix