Skip to content

Commit

Permalink
Extra for #144
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencepit authored and Erich Ocean committed Sep 30, 2008
1 parent 9ebe444 commit 08e988b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sproutcore/build_tools/resource_builder.rb
Expand Up @@ -124,7 +124,7 @@ def static_url(url); "url('#{url}')"; end

# check line for required() pattern. understands JS and CSS.
def _require_for(filename,line)
new_file = line.scan(/^require\s*\(\s*['"](.*)(\.(js|css))?['"]\s*\)\s*$/)
new_file = line.scan(/require\s*\(\s*['"](.*)(\.(js|css))?['"]\s*\)/)
ret = (new_file.size > 0) ? new_file.first.first : nil
ret.nil? ? nil : filename_for_require(ret)
end
Expand Down

0 comments on commit 08e988b

Please sign in to comment.