maccman/hem — comment on commit dcf656e9597f8e1cefbd03d6af6084e663c44b0d
File:  line 0
By mvladic:

I believe that:

```javascript
modName.replace('\\', '/');
```

should be:

```javascript
modName.replace(/\\/g, '/')
```

so that all occurrences of \ are replaced with /.

Also, in the same file (resolve.coffee), line:

```javascript
id = filename.replace("#{dir}/", '')
```

doesn't work on windows, because path separator / is hard-coded. Quick fix, but not pretty one, is:

```javascript
id = filename.replace("#{dir}/", '')
+ id = filename.replace("#{dir}\\", '')
```
Is there a way to get os path separator in JavaScript or node.js (like os.sep in python)?