Skip to content

Commit

Permalink
Merge pull request #958 from TeaMoe/stdin
Browse files Browse the repository at this point in the history
haml -c --stdin fix
  • Loading branch information
k0kubun committed Sep 25, 2017
2 parents e2e36b2 + b5d4fe4 commit abad7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/haml/exec.rb
Expand Up @@ -338,7 +338,7 @@ def process_result

def validate_ruby(code)
begin
eval("BEGIN {return nil}; #{code}", binding, @options[:filename])
eval("BEGIN {return nil}; #{code}", binding, @options[:filename] || "")
rescue ::SyntaxError # Not to be confused with Haml::SyntaxError
$!
end
Expand Down

0 comments on commit abad7a1

Please sign in to comment.