Fix backslashes missing (or blowing up) on Windows#41
Fix backslashes missing (or blowing up) on Windows#413vilguy wants to merge 1 commit intomassive-oss:masterfrom
Conversation
…here's any package starting with 'u' (because of \u being special case in JS....)
|
Would it work if we just replaced backslashes by forward slashes on Windows? |
|
@elsassph Do you mean just replace it for |
|
Just tried: |
|
I'm not really familiar with this library honestly (trying to find someone who worked on it), but maybe the path should be sanitized before, in |
|
Makes sense. It can be merged once someone has confirmed that it passes all the unit tests (on a windows machine) |


I was getting an error while trying to run unit tests for JS target.
After bit of digging I found that it's blowing up in PrintClientBase.hx#L510.
Seems like my
utilspackage was causingeval()issues because of\u.After even more digging I finally found place where I can fix it, I came here to do a fork so i can PR and (surprise, surprise) I found THIS COMMIT.
I think it was accidentally removed in this commit while fixing split on windows, but looks like this replace line is still needed before using regex. And just
"\\\\"are not enough, becauseeval()is called again in printclient.js#L51.On top of that this PR should also fix #36
Regards :)