Escape '/*' within block comment too
This commit is contained in:
parent
b6d0b3dfaf
commit
396e921044
@ -17,7 +17,7 @@ module RubyVM::CEscape
|
||||
|
||||
# generate comment, with escaps.
|
||||
def commentify str
|
||||
return "/* #{str.b.gsub '*/', '*\\/'} */"
|
||||
return "/* #{str.b.gsub('*/', '*\\/').gsub('/*', '/\\*')} */"
|
||||
end
|
||||
|
||||
# Mimic gensym of CL.
|
||||
|
Loading…
x
Reference in New Issue
Block a user