mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
replace all slashes instead of the first one
This commit is contained in:
parent
db0cc23743
commit
fa1b1d1c1f
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ TRAVIS = process.env.COCO_TRAVIS_TEST
|
||||||
|
|
||||||
|
|
||||||
#- regJoin replace a single '/' with '[\/\\]' so it can handle either forward or backslash
|
#- 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
|
#- Build the config
|
||||||
|
|
Loading…
Reference in a new issue