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

Normalize shell name before selecting URL-matching regex #2070

Merged
merged 1 commit into from
Aug 10, 2017

Conversation

bosconian-dynamics
Copy link
Contributor

@bosconian-dynamics bosconian-dynamics commented Aug 10, 2017

Ready for merge - no work left. One potential snag is the additional 'path' import; implementing the logic directly without relying on the import wouldn't be a problem, though.

This fix improves URL/webview support by normalizing shell identifiers prior to attempting to select a respective URL-matching pattern from lib/utils/url-regex.js's (shell-identifier-keyed) exports. This mitigates an issue where setting config.shell to an absolute path, and/or a binary name including the file extension would disable the URL/filepath-triggered webview behavior.

@ppot
Copy link
Contributor

ppot commented Aug 10, 2017

I will integrate it. However we plan on moving webviews to a specific component later on ;)

@ppot ppot merged commit d9dc415 into vercel:master Aug 10, 2017
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