Skip to content

Commit

Permalink
chore(sandbox): fixed Demo name replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Mar 22, 2021
1 parent 1861731 commit 70e60e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev-utils/src/sandbox/createSandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function transformFileContents(

if (demoName) {
transformed = transformed
.replace(`default ${demoName};`, "default Demo;")
.replace(`default function ${demoName}`, "default function Demo")
.replace(new RegExp(`<${demoName}(\\s+)`, "g"), "<Demo$1");
}

Expand Down

0 comments on commit 70e60e1

Please sign in to comment.