Skip to content

Commit

Permalink
Merge 19c3881 into afe011a
Browse files Browse the repository at this point in the history
  • Loading branch information
juriejan committed Sep 3, 2014
2 parents afe011a + 19c3881 commit d37be27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/blanket_mocha_server.coffee
Expand Up @@ -53,7 +53,7 @@ module.exports = (grunt) ->
obj[prop] = path.resolve obj[prop]
minViolationTest obj, prop

preNodeModulesMatch = obj[prop].match /^(.*)\/node_modules\/.*$/
preNodeModulesMatch = obj[prop].match /^(.*\/)node_modules\/.*$/
if preNodeModulesMatch
obj[prop] = obj[prop].replace preNodeModulesMatch[1], ''
else
Expand Down Expand Up @@ -100,7 +100,7 @@ module.exports = (grunt) ->
# passed the tests -- no clean up the dir base
_.each obj[prop], (val, index) ->
obj[prop][index] = path.resolve(val)
.replace(path.resolve(process.cwd()), '')
.replace(path.resolve(process.cwd()) + '/', '')
.replace(/[\\]/g, '/')

undefined
Expand Down

0 comments on commit d37be27

Please sign in to comment.