diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-11 18:12:34 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-11 18:13:24 +0900 |
| commit | c268e36e44e60449365cc11a4087c1c1d3b13a1d (patch) | |
| tree | 5ed833c15d93ecccf40d312aef49777591349d0b /Rakefile | |
| parent | 067c11f65d1eecbe53b247661aabbb00f0ba9a13 (diff) | |
| download | mruby-c268e36e44e60449365cc11a4087c1c1d3b13a1d.tar.gz mruby-c268e36e44e60449365cc11a4087c1c1d3b13a1d.zip | |
Require `Regexp.escape` before interpolating `build_dir`; fix #4817
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ MRuby.each_target do |target| relative_from_root = gem.dir.relative_path_from(MRUBY_ROOT) current_build_dir = File.expand_path "#{build_dir}/#{relative_from_root}" - if current_build_dir !~ /^#{build_dir}/ + if current_build_dir !~ /^#{Regexp.escape(build_dir)}/ current_build_dir = "#{build_dir}/mrbgems/#{gem.name}" end |
