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

Improve default export detection #362

Merged
merged 2 commits into from
Dec 21, 2018
Merged

Conversation

jescalan
Copy link
Contributor

Closes #341

Definitely preferable to get a true parser in here as is being discussed, but this at least resolves the major bug of disallowing the word "default" anywhere within front matter in the meantime! 😁

@vercel
Copy link

vercel bot commented Dec 18, 2018

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

@timneutkens
Copy link
Member

timneutkens commented Dec 19, 2018

@jescalan could you add a test for this? 🙏 So that we make sure there is no regression in the future.

@jescalan
Copy link
Contributor Author

Wow, yes I'm sorry for some reason I wasn't even thinking about it. Of course, I'll add one today

@jescalan
Copy link
Contributor Author

Ok @timneutkens - thanks for keeping me in line there. Eliminated a couple unnecessary regex checks and made the tests much more thorough around this use case.

@johno
Copy link
Member

johno commented Dec 21, 2018

Thanks!

@johno johno merged commit ad58be3 into mdx-js:master Dec 21, 2018
@jescalan jescalan deleted the je.parse-default branch December 21, 2018 15:24
johno pushed a commit that referenced this pull request Feb 18, 2019
* improve default export detection

* more extensive testing
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

The word "default" anywhere in the meta description causes an incorrect error
3 participants