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:
parent
76c0056505
commit
03ce48dac7
1 changed files with 2 additions and 2 deletions
|
@ -314,8 +314,8 @@ def data_foreach(name, &block)
|
||||||
File.open(fn, 'rb') do |f|
|
File.open(fn, 'rb') do |f|
|
||||||
if /^emoji/ =~ name
|
if /^emoji/ =~ name
|
||||||
line = f.gets("")
|
line = f.gets("")
|
||||||
# Headers till Emoji 13
|
# Headers till Emoji 13 or 15
|
||||||
version = line[/^# #{Regexp.quote(File.basename(name))}.*^# Version: ([\d.]+)/m, 1]
|
version = line[/^# #{Regexp.quote(File.basename(name))}.*(?:^# Version:|Emoji Version) ([\d.]+)/m, 1]
|
||||||
type = :Emoji
|
type = :Emoji
|
||||||
else
|
else
|
||||||
# Headers since Emoji 14 or other Unicode data
|
# Headers since Emoji 14 or other Unicode data
|
||||||
|
|
Loading…
Reference in a new issue