diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-05-24 19:01:39 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-05-24 19:03:29 +0900 |
commit | 706c816ad270d981c37894b78ac49cdf1d7cf350 (patch) | |
tree | 6621bb25b0bc6e574420aeeca361ae82ebc47db2 /tool/downloader.rb | |
parent | a4da223c9a37e2384086f4306571ff0a753fa844 (diff) |
Escape dots in regexp
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r-- | tool/downloader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb index cb36150942..f42f9a0ef1 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -94,7 +94,7 @@ class Downloader super(UNICODE_PUBLIC+name_dir_part+beta_name, name, dir, since, options) else index_file = Pathname.new(under(dir, name_dir_part+'index.html')) - if index_file.exist? and name_dir_part !~ /^(12.1.0|emoji\/12.0)/ + if index_file.exist? and name_dir_part !~ /^(12\.1\.0|emoji\/12\.0)/ raise "Although Unicode is not in beta, file #{index_file} exists. " + "Remove all files in this directory and in .downloaded-cache/ " + "because they may be leftovers from the beta period." |