ruby-changes:73592
From: Nobuyoshi <ko1@a...>
Date: Sat, 17 Sep 2022 16:35:18 +0900 (JST)
Subject: [ruby-changes:73592] 03ce48dac7 (master): Emoji files header changed at 15.0 again
https://git.ruby-lang.org/ruby.git/commit/?id=03ce48dac7 From 03ce48dac74099dd725c7ab8dce5ca8b20df65f5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 14 Sep 2022 18:56:51 +0900 Subject: Emoji files header changed at 15.0 again --- tool/enc-unicode.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/enc-unicode.rb b/tool/enc-unicode.rb index 6fb0f36d5b..60d3fca753 100755 --- a/tool/enc-unicode.rb +++ b/tool/enc-unicode.rb @@ -314,8 +314,8 @@ def data_foreach(name, &block) https://github.com/ruby/ruby/blob/trunk/tool/enc-unicode.rb#L314 File.open(fn, 'rb') do |f| if /^emoji/ =~ name line = f.gets("") - # Headers till Emoji 13 - version = line[/^# #{Regexp.quote(File.basename(name))}.*^# Version: ([\d.]+)/m, 1] + # Headers till Emoji 13 or 15 + version = line[/^# #{Regexp.quote(File.basename(name))}.*(?:^# Version:|Emoji Version) ([\d.]+)/m, 1] type = :Emoji else # Headers since Emoji 14 or other Unicode data -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/