From 2ecc8bc58ec6ce97538f2a07931632865356c3df Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 7 Aug 2018 11:19:13 +0300 Subject: [PATCH] fix: fix Authentication section is not rendered fixes #590 --- src/components/ContentItems/ContentItems.tsx | 4 ++-- src/services/OpenAPIParser.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ContentItems/ContentItems.tsx b/src/components/ContentItems/ContentItems.tsx index f3ecc1e1..41a88bed 100644 --- a/src/components/ContentItems/ContentItems.tsx +++ b/src/components/ContentItems/ContentItems.tsx @@ -89,13 +89,13 @@ export class SectionItem extends React.Component { {name} {components ? ( - - ) : ( {store => ( )} + ) : ( + )} diff --git a/src/services/OpenAPIParser.ts b/src/services/OpenAPIParser.ts index 8037705a..05cdf77d 100644 --- a/src/services/OpenAPIParser.ts +++ b/src/services/OpenAPIParser.ts @@ -76,11 +76,11 @@ export class OpenAPIParser { const description = spec.info.description || ''; const legacySecurityRegexp = new RegExp( COMPONENT_REGEXP.replace('{component}', ''), - 'gmi', + 'mi', ); const securityRegexp = new RegExp( MDX_COMPONENT_REGEXP.replace('{component}', 'security-definitions'), - 'gmi', + 'mi', ); if (!legacySecurityRegexp.test(description) && !securityRegexp.test(description)) { const comment = buildComponentComment('security-definitions');