summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-05 12:44:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-05 12:44:04 +0000
commitaebc11dfe60bb9548843c22d7deb65c67d7a2915 (patch)
treeea0c8562536636f0799d05c6094de44d24652332 /tool
parent8f734dc7b543e7662b66cffd5d698d372d9a0b7a (diff)
downloader.rb: quote base name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/downloader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index f43861ceb5..80ee244958 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -88,7 +88,7 @@ class Downloader
INDEX[:index] = IO.read index_file
end
file_base = File.basename(name, '.txt')
- beta_name = INDEX[:index].match(/#{file_base}(-[0-9.]+d\d+)?\.txt/)[0]
+ beta_name = INDEX[:index][%/#{Regexp.quote(file_base)}(-[0-9.]+d\d+)?\.txt/]
# make sure we always check for new versions of files,
# because they can easily change in the beta period
super(UNICODE_PUBLIC+name_dir_part+beta_name, name, dir, true, options)