ruby-changes:55820
From: Kazuhiro <ko1@a...>
Date: Fri, 24 May 2019 19:04:08 +0900 (JST)
Subject: [ruby-changes:55820] Kazuhiro NISHIYAMA: 706c816ad2 (trunk): Escape dots in regexp
https://git.ruby-lang.org/ruby.git/commit/?id=706c816ad2 From 706c816ad270d981c37894b78ac49cdf1d7cf350 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Fri, 24 May 2019 19:01:39 +0900 Subject: Escape dots in regexp diff --git a/tool/downloader.rb b/tool/downloader.rb index cb36150..f42f9a0 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -94,7 +94,7 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L94 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." -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/