tactivos / grunt-cdn

79 stars 53 forks source link

Protocol-relative URLs are replaced by grunt-cdn #37

Open urish opened 10 years ago

urish commented 10 years ago

Seems like this bug was introduced in bcdb7f02, by commenting out the code that ignores protocol-relative URLs.

Specifically, this is the URL that fails in my project: //ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js.

As a workaround, I added the following option to the the task configuration in my Gruntfile: match: '^[^/]|^/[^/]'.

Hope to see this fixed soon, thanks!