replace all slashes instead of the first one

This commit is contained in:
yaur 2015-01-28 15:45:18 -05:00
parent db0cc23743
commit fa1b1d1c1f

View file

@ -8,7 +8,7 @@ TRAVIS = process.env.COCO_TRAVIS_TEST
#- regJoin replace a single '/' with '[\/\\]' so it can handle either forward or backslash
regJoin = (s) -> new RegExp(s.replace(/\//, '[\\\/\\\\]'))
regJoin = (s) -> new RegExp(s.replace(/\//g, '[\\\/\\\\]'))
#- Build the config