From 2329e037cd5b71e99ab358fdd59641f1672e03ab Mon Sep 17 00:00:00 2001 From: CirnoV Date: Fri, 27 Dec 2024 15:31:00 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=95=EA=B7=9C=EC=8B=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/remark-param-tree/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/remark-param-tree/src/index.ts b/packages/remark-param-tree/src/index.ts index fd60f0b26..21e49f8ea 100644 --- a/packages/remark-param-tree/src/index.ts +++ b/packages/remark-param-tree/src/index.ts @@ -43,7 +43,7 @@ export default function remarkParamTreePlugin() { const [typeNode, typeStr] = result; const exec = - /^(?[a-zA-Z_$][a-zA-Z0-9_$]*)(?\?)?:\s*(?.+)$/.exec( + /^(?[a-zA-Z_$][a-zA-Z0-9_$]*)(?\?)?:\s*(?[a-zA-Z0-9_$<>[\]{}|&?()\s]+)$/.exec( typeStr, ); if (exec === null) {