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(#380): fix json escape #393

Merged
merged 2 commits into from
May 16, 2022
Merged

Conversation

ota-meshi
Copy link
Contributor

Changes

Fixes #380

This PR fixes escapeForJSON to escape the backslash (/).

Testing

I added a test case for a template with backslashes to internal/printer/printer_test.go TestPrintToJSON and verified that go test -v ./internal/... command passed.

Docs

bug fix only.

@changeset-bot
Copy link

changeset-bot bot commented May 13, 2022

🦋 Changeset detected

Latest commit: 71b39de

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/compiler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ota-meshi
Copy link
Contributor Author

The linting error doesn't seem to have anything to do with my changes. If you know I have to do something, please let me know.

@natemoo-re
Copy link
Member

Thanks so much for the PR @ota-meshi! The linting issue should be fixed by #397 and then I'll rerun this PR.

@natemoo-re
Copy link
Member

Looks great, thanks so much for the fix!! 🎉

@natemoo-re natemoo-re merged commit fda859a into withastro:main May 16, 2022
@ota-meshi ota-meshi deleted the json-escape branch May 16, 2022 21:06
natemoo-re pushed a commit that referenced this pull request Jul 20, 2022
* fix(#380): fix json escape

* Create six-squids-wink.md
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.

🐛 BUG: \ escape problem with parse method.
2 participants