1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Emoji files header changed at 15.0 again

This commit is contained in:
Nobuyoshi Nakada 2022-09-14 18:56:51 +09:00
parent 76c0056505
commit 03ce48dac7
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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