Skip to content

Commit

Permalink
정규식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
CirnoV committed Dec 30, 2024
1 parent c66cd7e commit 2329e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remark-param-tree/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function remarkParamTreePlugin() {
const [typeNode, typeStr] = result;

const exec =
/^(?<name>[a-zA-Z_$][a-zA-Z0-9_$]*)(?<optional>\?)?:\s*(?<type>.+)$/.exec(
/^(?<name>[a-zA-Z_$][a-zA-Z0-9_$]*)(?<optional>\?)?:\s*(?<type>[a-zA-Z0-9_$<>[\]{}|&?()\s]+)$/.exec(
typeStr,
);
if (exec === null) {
Expand Down

0 comments on commit 2329e03

Please sign in to comment.