Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Static Template): fix doctype injection #899

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

SSHari
Copy link
Contributor

@SSHari SSHari commented Apr 8, 2023

What kind of change does this pull request introduce?

#897

This looks like it made its way in as part of #884. I'm a bit confused about how things were ever working though. Based on the change in this PR, it seems like things should have always been failing because content would have been converted to a string and that if statement would have always been true because the Regex was wrong (i.e. missing the .*).

Sorry for not catching this on the first go around though. Hopefully, things should be good with this fix.

What is the current behavior?

The Uint8Array content array is converted to a string in the Static template rather than being decoded.

What is the new behavior?

The content is now properly decoded.

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

I just tried things in Storybook. I was able to reproduce the issue before making the change and then after making the change things seem to be working again.

Checklist

  • Documentation;
  • Storybook (if applicable);
  • Tests;
  • Ready to be merged;

@vercel
Copy link

vercel bot commented Apr 8, 2023

@SSHari is attempting to deploy a commit to the CodeSandbox Team on Vercel.

A member of the Team first needs to authorize it.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 8, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit eef1c3e:

Sandbox Source
Sandpack Configuration
sandpack-run-stale-value Configuration

@vercel
Copy link

vercel bot commented Apr 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sandpack-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2023 10:53pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants