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

Update metadata regular expression parsing #973

Merged
merged 1 commit into from
Jun 13, 2013

Conversation

doctyper
Copy link
Member

Updates the regular expressions in lib/generate-meta.js to "match everything until", instead of "match everything except". This resolves issues with using asterisks inside metadata.

@stucox I noticed you worked around the issue in 9dad6bb, but I believe the issue also affects the documentation meta. This might be a better solution.

…tch everything except". This resolves issues with using asterisks inside metadata.
@stucox
Copy link
Member

stucox commented Jun 13, 2013

Cool, thanks.

What's the difference between [\s\S]* and .* in a regex?

@stucox
Copy link
Member

stucox commented Jun 13, 2013

Ah – I take it it matches a new line (which . doesn't).

Cool, looks good to me.

stucox pushed a commit that referenced this pull request Jun 13, 2013
Update metadata regular expression parsing
@stucox stucox merged commit fcad676 into Modernizr:master Jun 13, 2013
patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this pull request Feb 22, 2015
Update metadata regular expression parsing
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.

None yet

2 participants