We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33100a0 commit 75a0749Copy full SHA for 75a0749
lib/erb.rb
@@ -724,7 +724,7 @@ def detect_magic_comment(s, enc = nil)
724
frozen = nil
725
s.scan(re) do
726
comment = $+
727
- comment = $1 if comment[/-\*-\s*([^\s].*?)\s*-*-$/]
+ comment = $1 if comment[/-\*-\s*([^\s].*?)\s*-\*-$/]
728
case comment
729
when %r"coding\s*[=:]\s*([[:alnum:]\-_]+)"
730
enc = Encoding.find($1.sub(/-(?:mac|dos|unix)/i, ''))
0 commit comments