summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)