From fa1b1d1c1fb8eccd07aef3178449c691c1ace1b2 Mon Sep 17 00:00:00 2001 From: yaur Date: Wed, 28 Jan 2015 15:45:18 -0500 Subject: [PATCH] replace all slashes instead of the first one --- config.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.coffee b/config.coffee index 7b9945fd8..7b8991eb5 100644 --- a/config.coffee +++ b/config.coffee @@ -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