mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Don't match to string literals, because the path seperator is different on
windows
This commit is contained in:
parent
cc99d810a9
commit
03093fc4a5
1 changed files with 2 additions and 6 deletions
|
@ -197,12 +197,8 @@ exports.config =
|
|||
|
||||
modules:
|
||||
definition: (path, data) ->
|
||||
needHeaders = [
|
||||
'public/javascripts/app.js'
|
||||
'public/javascripts/world.js'
|
||||
'public/javascripts/whole-app.js'
|
||||
]
|
||||
defn = if path in needHeaders then commonjsHeader else ''
|
||||
needHeaderExpr = regJoin('^public/javascripts/?(app.js|world.js|whole-app.js)')
|
||||
defn = if path.match(needHeaderExpr) then commonjsHeader else ''
|
||||
return defn
|
||||
|
||||
#- Find all .coffee and .jade files in /app
|
||||
|
|
Loading…
Reference in a new issue