Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Fix for turnaries always being truthy when passed to escaping EJS tags. #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/ejs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def js_unescape!(source)

def replace_escape_tags!(source, options)
source.gsub!(options[:escape_pattern] || escape_pattern) do
"',(''+#{js_unescape!($1)})#{escape_function},'"
"',(''+(#{js_unescape!($1)}))#{escape_function},'"
end
end

Expand Down