From 03ce48dac74099dd725c7ab8dce5ca8b20df65f5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 14 Sep 2022 18:56:51 +0900 Subject: [PATCH] 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) 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