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');