File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {simplifyType} from "./simplifyType.js";
16
16
*/
17
17
function parseJSDoc ( src , expandType = expandTypeDepFree ) {
18
18
// Parse something like: @param {Object } [kwargs={}] Optional arguments.
19
- const regex = / @ p a r a m \{ ( .* ?) \} ( [ \[ \] a - z A - Z 0 - 9 _ $ = \{ \} \. ' " ] + ) / g;
19
+ const regex = / @ p a r a m \{ ( .* ?) \} ( [ \[ \] a - z A - Z 0 - 9 _ $ = \- \ {\} \. ' " ] + ) / g;
20
20
const matches = [ ...src . matchAll ( regex ) ] ;
21
21
/** @type {Record<string, ExpandTypeReturnType> } */
22
22
const params = Object . create ( null ) ;
Original file line number Diff line number Diff line change 71
71
"input" : " ./test/typechecking/good-old-es5-input.mjs" ,
72
72
"output" : " ./test/typechecking/good-old-es5-output.mjs"
73
73
},
74
+ {
75
+ "input" : " ./test/typechecking/jsdoc-regexp-default-values-sci-input.mjs" ,
76
+ "output" : " ./test/typechecking/jsdoc-regexp-default-values-sci-output.mjs"
77
+ },
74
78
{
75
79
"input" : " ./test/typechecking/keyof-typeof-input.mjs" ,
76
80
"output" : " ./test/typechecking/keyof-typeof-output.mjs"
You can’t perform that action at this time.
0 commit comments