Merge pull request #5826 from jbampton/replace-gsub-with-tr

Replace `gsub` with `tr`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-10-26 18:04:32 +09:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ module MRuby
end
def funcname
@funcname ||= @name.gsub('-', '_')
@funcname ||= @name.tr('-', '_')
end
def compilers
+1 -1
View File
@@ -44,7 +44,7 @@ ARGV.each do |gem|
case RbConfig::CONFIG['host_os']
when /mswin(?!ce)|mingw|bccwin/
gem = gem.gsub('\\', '/')
gem = gem.tr('\\', '/')
end
Dir["#{gem}/bintest/**/*.rb"].each do |file|