Skip to content

Commit

Permalink
fixes a bug which ignored filenames that begin with 0-9
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Fairfield committed Dec 8, 2014
1 parent 77729ae commit 6158c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffeescript-concat.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ findFileDependencies = (file) ->
file = '\n' + file

dependencies = []
fileDirectiveRegex = /#=\s*require\s+<([A-Za-z_$-][A-Za-z0-9_$-.]*)>/g
fileDirectiveRegex = /#=\s*require\s+<([A-Za-z0-9_$-][A-Za-z0-9_$-.]*)>/g

while (result = fileDirectiveRegex.exec(file)) != null
dependencies.push(result[1])
Expand Down

0 comments on commit 6158c7a

Please sign in to comment.