diff --git a/docs/src/app/shared/stackblitz/stackblitz-writer.ts b/docs/src/app/shared/stackblitz/stackblitz-writer.ts index c62142999dd1..e1b03ded7e8f 100644 --- a/docs/src/app/shared/stackblitz/stackblitz-writer.ts +++ b/docs/src/app/shared/stackblitz/stackblitz-writer.ts @@ -215,8 +215,8 @@ export class StackBlitzWriter { // Replace `bootstrapApplication(MaterialDocsExample,` // will be replaced as `bootstrapApplication(ButtonDemo,` fileContent = fileContent.replace( - /bootstrapApplication\(MaterialDocsExample,/g, - `bootstrapApplication(${mainComponentName},`, + /bootstrapApplication\(MaterialDocsExample/g, + `bootstrapApplication(${mainComponentName}`, ); const dotIndex = data.indexFilename.lastIndexOf('.');