Project

General

Profile

« Previous | Next » 

Revision 931bcd1b

Added by k0kubun (Takashi Kokubun) about 3 years ago

[ruby/irb] Assert lvars_code doesn't include \n

Removing /\A.+\n/ could have an unexpected impact, depending on how
RubyLex.generate_local_variables_assign_code is implemented. It feels
like a too much assumption and the intention isn't immediately clear,
so I added these changes.

https://github.com/ruby/irb/commit/ccc07a35ce