lib/erubi.rb in erubi-1.2.0 vs lib/erubi.rb in erubi-1.2.1

- old
+ new

@@ -5,10 +5,10 @@ RANGE_ALL = 0..-1 if RUBY_VERSION >= '1.9' RANGE_FIRST = 0 RANGE_LAST = -1 - TEXT_END = "'.freeze;" + TEXT_END = RUBY_VERSION >= '2.1' ? "'.freeze;" : "';" # Escape the following characters with their HTML/XML # equivalents. def self.h(value) value.to_s.gsub(/[&<>"']/, ESCAPE_TABLE)