File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ export class DocsParser {
90
90
// Remove " Object"
91
91
name = name . replace ( / O b j e c t (?: e x t e n d s ` .+ ?` ) ? $ / , '' ) ;
92
92
} else if ( isClass ) {
93
- // Remove "Class: "
94
- name = name . substr ( 7 ) ;
93
+ // Remove "Class: " and " extends `yyy`"
94
+ name = name . substr ( 7 ) . replace ( / e x t e n d s ` . + ? ` $ / , '' ) ;
95
95
}
96
96
97
97
let description = '' ;
@@ -120,7 +120,8 @@ export class DocsParser {
120
120
. join ( '\n\n' ) ;
121
121
}
122
122
123
- const extendsMatch = / O b j e c t e x t e n d s ` ( .+ ?) ` ? $ / . exec ( heading . heading ) ;
123
+ const extendsPattern = isClass ? / e x t e n d s ` ( .+ ?) ` ? $ / : / O b j e c t e x t e n d s ` ( .+ ?) ` ? $ / ;
124
+ const extendsMatch = extendsPattern . exec ( heading . heading ) ;
124
125
parsedContainers . push ( {
125
126
isClass,
126
127
tokens : heading . content ,
You can’t perform that action at this time.
0 commit comments