Skip to content

JavaScript: fix edge cases in type cast comment detection regex#5793

Merged
ikatyang merged 8 commits intoprettier:masterfrom
quip:upstream-type-cast-fix
Jan 30, 2019
Merged

JavaScript: fix edge cases in type cast comment detection regex#5793
ikatyang merged 8 commits intoprettier:masterfrom
quip:upstream-type-cast-fix

Conversation

@yangsu
Copy link
Copy Markdown
Contributor

@yangsu yangsu commented Jan 23, 2019

Fix edge cases involving {...} (record @type) and newlines in prettier's detection code for type cast comments

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory)
  • (If not an internal change) I’ve added my changes to the CHANGELOG.unreleased.md file following the template.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@ikatyang ikatyang added this to the 1.16.2 milestone Jan 30, 2019
@yangsu yangsu force-pushed the upstream-type-cast-fix branch from c758bf1 to dd47166 Compare January 30, 2019 07:10
@ikatyang ikatyang merged commit 47da080 into prettier:master Jan 30, 2019
@ikatyang
Copy link
Copy Markdown
Member

Thanks!

@yangsu yangsu deleted the upstream-type-cast-fix branch January 30, 2019 07:27
@yangsu
Copy link
Copy Markdown
Contributor Author

yangsu commented Jan 30, 2019

Thank you for the comments!

@ikatyang
Copy link
Copy Markdown
Member

👉 https://github.com/prettier/prettier/releases/tag/1.16.2

@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Apr 30, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants