summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-28 14:18:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-28 14:18:50 +0000
commit1da2b2e7b991121f9114200ec76e36c682453090 (patch)
tree40fcca1ad327672102777e30c4f128f7baefe93e
parentf28caf31d17cff9aa84b3fca6e7631950c1d9338 (diff)
downloadruby-1da2b2e7b991121f9114200ec76e36c682453090.tar.gz
transcode-tblgen.rb: dup literal string
* tool/transcode-tblgen.rb: get rid of modifying frozen literal string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--tool/transcode-tblgen.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index ec417ec5b0..f43627b781 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -1031,7 +1031,7 @@ if __FILE__ == $0
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/, '_')