ruby-changes:44439
From: nobu <ko1@a...>
Date: Fri, 28 Oct 2016 23:18:55 +0900 (JST)
Subject: [ruby-changes:44439] nobu:r56512 (trunk): transcode-tblgen.rb: dup literal string
nobu 2016-10-28 23:18:50 +0900 (Fri, 28 Oct 2016) New Revision: 56512 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56512 Log: transcode-tblgen.rb: dup literal string * tool/transcode-tblgen.rb: get rid of modifying frozen literal string. Modified files: trunk/tool/transcode-tblgen.rb Index: tool/transcode-tblgen.rb =================================================================== --- tool/transcode-tblgen.rb (revision 56511) +++ tool/transcode-tblgen.rb (revision 56512) @@ -1031,7 +1031,7 @@ if __FILE__ == $0 https://github.com/ruby/ruby/blob/trunk/tool/transcode-tblgen.rb#L1031 VERBOSE_MODE = verbose_mode OUTPUT_FILENAME = output_filename - OUTPUT_PREFIX = output_filename ? File.basename(output_filename)[/\A[A-Za-z0-9_]*/] : "" + OUTPUT_PREFIX = output_filename ? File.basename(output_filename)[/\A[A-Za-z0-9_]*/] : "".dup OUTPUT_PREFIX.sub!(/\A_+/, '') OUTPUT_PREFIX.sub!(/_*\z/, '_') -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/