gulp-rewrite-css icon indicating copy to clipboard operation
gulp-rewrite-css copied to clipboard

Replace "\" to "/" in target url

Open lswierzewski opened this issue 11 years ago • 2 comments

Replace line 51 in src/index.coffee file:

targetUrl = targetUrl.replace '\\', '/' if path.sep is '\\'

to

targetUrl = targetUrl.replace /\\/g, '/' if path.sep is '\\'

to replace globally all backslashes to slashes in a string, not just the first occurance.

lswierzewski avatar Dec 08 '14 11:12 lswierzewski

@lswierzewski good catch, would you like to create a PR with a matching test?

joscha avatar Dec 08 '14 12:12 joscha

closed via 84e8422744010c528424409bbaccca9a32fddf5c

joscha avatar Feb 09 '15 14:02 joscha