File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,16 @@ function smokeTestMethods(data) {
3030 } ) ;
3131}
3232
33+ function cleanExamples ( data ) {
34+ data . classitems . forEach ( function ( classitem ) {
35+ if ( classitem . itemtype === 'method' && classitem . example ) {
36+ classitem . example = classitem . example . map ( i =>
37+ i . replace ( / [ ^ \n ] * \/ \/ \s * p r e t t i e r - i g n o r e .* \r ? \n / g, '' )
38+ ) ;
39+ }
40+ } ) ;
41+ }
42+
3343function mergeOverloadedMethods ( data ) {
3444 var methodsByFullName = { } ;
3545 var paramsForOverloadedMethods = { } ;
@@ -248,6 +258,7 @@ module.exports = function(data, options) {
248258 renderDescriptionsAsMarkdown ( data ) ;
249259 mergeOverloadedMethods ( data ) ;
250260 smokeTestMethods ( data ) ;
261+ cleanExamples ( data ) ;
251262} ;
252263
253264module . exports . mergeOverloadedMethods = mergeOverloadedMethods ;
You can’t perform that action at this time.
0 commit comments