File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -39,33 +39,27 @@ const PROPERTY = `${CAMEL_CASE}(?:(\\[${CAMEL_CASE}\\])|\\.(\\w+))`;
39
39
export const DOC_API_HEADING_TYPES = [
40
40
{
41
41
type : 'method' ,
42
- regex : new RegExp ( `^\`? ${ PROPERTY } ${ FUNCTION_CALL } \`? $` , 'i' ) ,
42
+ regex : new RegExp ( `^\`${ PROPERTY } ${ FUNCTION_CALL } \`$` , 'i' ) ,
43
43
} ,
44
- { type : 'event' , regex : / ^ E v e n t : + ` ? [ ' " ] ? ( [ ^ ' " ] + ) [ ' " ] ? ` ? $ / i } ,
44
+ { type : 'event' , regex : / ^ E v e n t : + ` ' ? ( [ ^ ' ] + ) ' ` $ / i } ,
45
45
{
46
46
type : 'class' ,
47
47
regex : new RegExp (
48
- `Class: +\`? (${ CAMEL_CASE } (?: extends +${ CAMEL_CASE } )?)\`? $` ,
48
+ `^ Class: +\`(${ CAMEL_CASE } (?: extends +${ CAMEL_CASE } )?)\`$` ,
49
49
'i'
50
50
) ,
51
51
} ,
52
52
{
53
53
type : 'ctor' ,
54
- regex : new RegExp (
55
- `^(?:Constructor: +)?\`?new +(${ CAMEL_CASE } )${ FUNCTION_CALL } \`?$` ,
56
- 'i'
57
- ) ,
54
+ regex : new RegExp ( `^\`new +(${ CAMEL_CASE } )${ FUNCTION_CALL } \`$` , 'i' ) ,
58
55
} ,
59
56
{
60
57
type : 'classMethod' ,
61
- regex : new RegExp (
62
- `^Static method: +\`?${ PROPERTY } ${ FUNCTION_CALL } \`?$` ,
63
- 'i'
64
- ) ,
58
+ regex : new RegExp ( `^Static method: +\`${ PROPERTY } ${ FUNCTION_CALL } \`$` , 'i' ) ,
65
59
} ,
66
60
{
67
61
type : 'property' ,
68
- regex : new RegExp ( `^(?:Class property: +)?\`? ${ PROPERTY } \`? $` , 'i' ) ,
62
+ regex : new RegExp ( `^\` ${ PROPERTY } \`$` , 'i' ) ,
69
63
} ,
70
64
] ;
71
65
You can’t perform that action at this time.
0 commit comments