Prefer first variation over default unified value
parent
44d401ae48
commit
489641bda6
|
@ -32,6 +32,10 @@ emojiData.forEach((datum) => {
|
|||
datum.name || (datum.name = datum.short_name.replace(/\-/g, ' '))
|
||||
datum.name = inflection.titleize(datum.name || '')
|
||||
|
||||
if (datum.variations && datum.variations.length) {
|
||||
datum.unified = datum.variations.shift()
|
||||
}
|
||||
|
||||
if (datum.category == 'Flags') {
|
||||
datum.name = datum.name.replace(/\s(\w+)$/, (letters) => letters.toUpperCase())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue