mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/erb] Escape the second *
The original code just seems unintentional
75a0749cb7
This commit is contained in:
parent
c37d9682fc
commit
3cfb6fc479
1 changed files with 1 additions and 1 deletions
|
@ -724,7 +724,7 @@ class ERB
|
||||||
frozen = nil
|
frozen = nil
|
||||||
s.scan(re) do
|
s.scan(re) do
|
||||||
comment = $+
|
comment = $+
|
||||||
comment = $1 if comment[/-\*-\s*([^\s].*?)\s*-*-$/]
|
comment = $1 if comment[/-\*-\s*([^\s].*?)\s*-\*-$/]
|
||||||
case comment
|
case comment
|
||||||
when %r"coding\s*[=:]\s*([[:alnum:]\-_]+)"
|
when %r"coding\s*[=:]\s*([[:alnum:]\-_]+)"
|
||||||
enc = Encoding.find($1.sub(/-(?:mac|dos|unix)/i, ''))
|
enc = Encoding.find($1.sub(/-(?:mac|dos|unix)/i, ''))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue