Skip to content

JSON.parse fails on url('abc') #5

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

Closed
sokra opened this issue Nov 5, 2013 · 3 comments
Closed

JSON.parse fails on url('abc') #5

sokra opened this issue Nov 5, 2013 · 3 comments

Comments

@sokra
Copy link
Member

sokra commented Nov 5, 2013

No description provided.

@jhnns
Copy link
Member

jhnns commented Jun 29, 2014

Instead of using JSON.parse it should probably just remove the quotes:

url.replace(/^["'](.*)["']$/g, "$1");

@MattKunze
Copy link

What is the use case for the import URL to have JSON content?

@sokra sokra closed this as completed in f294c2e Jul 7, 2014
@jhnns
Copy link
Member

jhnns commented Jul 7, 2014

Nice 👍

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

No branches or pull requests

3 participants