mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04: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 = (s) -> new RegExp(s.replace(/\//, '[\\\/\\\\]'))
|
||||
regJoin = (s) -> new RegExp(s.replace(/\//g, '[\\\/\\\\]'))
|
||||
|
||||
|
||||
#- Build the config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue