Apakah ada cara untuk memeriksa apakah string di JS adalah satu emoji tunggal?

20

Pertanyaannya sederhana: Saya punya string str, bagaimana cara memeriksa apakah strada satu emoji tunggal, dan tidak ada yang lain? Selain itu saya lebih suka tidak menggunakan perpustakaan lain.

Pertandingan "🍎", "β›ΉπŸΏβ€β™‚οΈ", "3️⃣"tapi tidak "πŸ“a", "𝕒","πŸŒπŸ€"

Saya mengalami masalah dalam menemukan solusi tetapi berikut adalah beberapa hal yang saya coba sejauh ini:


Solusi yang Dicoba 1 - Mainkan panjang dan ...operator

Saya belajar bahwa emoji menempati lebih dari satu byte, beberapa bahkan menempati 4 byte, atau lebih ... dan kita dapat mengukurnya melalui lengthproperti string :

console.log("🍎".length); // 2
console.log("πŸ›‘οΈ".length); // 3
console.log("β›ΉπŸΏβ€β™‚οΈ".length); // 6

Kemudian saya mengetahui bahwa ...operator memperhitungkannya dan memisahkan emoji dengan benar dalam array - Saya kemudian dapat melihat lengthproperti array yang dihasilkan dan mendeteksi apakah mereka berbeda.

str = "β›ΉπŸΏβ€β™‚οΈ";
if (str.length !== [...str].length) {
  // is emoji?
} else {
  // is not emoji
}

Tapi ini tidak memeriksa untuk karakter multi-byte lainnya seperti 𝕑yang panjangnya 2. Ditambah beberapa emoji masih terpisah secara aneh.


Attempted Solution 2 - Regex, ekspresi reguler

Tentu saja regex akan menjadi hal yang perlu diperhatikan tetapi saya belum menemukan solusi yang layak.

Regex jawaban ini\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff] berfungsi dengan baik untuk mendeteksi jika suatu string memiliki emoji, tetapi diterapkan pada situasi saya menghasilkan banyak masalah. Inilah tes saya:

Bagian A - Tanpa awal / akhir string regex ( ^dan $)

  • 2A.1 str.match(regex) sangat tidak konsisten, itu memecah beberapa emoji dan beberapa lainnya tidak dapat digunakan. Saya tidak melihat cara untuk mengetahui apakah itu bahkan mengandung karakter non-emoji atau jika mengandung lebih dari satu emoji:
let regex = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/;

console.log("5️⃣".match(regex)); // [ '⃣', '⃣', index: 2, input: '5️⃣' ]
console.log("πŸ’‘".match(regex)); // [ 'πŸ’‘', 'πŸ’‘', index: 0, input: 'πŸ’‘' ]
console.log("🌑️🌑️".match(regex)); // [ '🌑', '🌑', index: 0, input: '🌑️🌑️' ]
console.log("aβ›…".match(regex)); // [ 'β›…', 'β›…', index: 1, input: 'aβ›…' ]
  • 2A.2 regex.test(str) mengembalikan true setiap kali emoji termasuk dalam string, yang bukan perilaku yang saya cari:
let regex = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/;

console.log(regex.test("5️⃣")); // true - correct
console.log(regex.test("a")); // false - correct
console.log(regex.test("🌑️🌑️")); // true - should be false
console.log(regex.test("hello β›…!")); // true - should be false

Bagian B - Dengan awal / akhir string regex ( ^dan $)

  • 2B.1 str.match(regex) mengembalikan nullemoji tertentu karena suatu alasan. Saya tidak tahu mengapa, tetapi saya berasumsi ada kaitannya dengan mengapa str.match(regex)akan memecah emoji ini di Bagian A:
let regex = /^(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/;

console.log("5️⃣".match(regex)); // null
console.log("πŸ’‘".match(regex)); // [ 'πŸ’‘', 'πŸ’‘', index: 0, input: 'πŸ’‘' ]
console.log("🌑️".match(regex)); // null
console.log("β›…".match(regex)); // [ 'β›…', 'β›…', index: 1, input: 'aβ›…' ]
console.log("πŸŒπŸ€".match(regex)); // null
  • 2B.2 regex.test(str) akan kembali falsepada emoji yang sama di mana ia akan kembali nullpada str.match(regex):
let regex = /^(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])$/;

console.log(regex.test("5️⃣")); // false - should be true
console.log(regex.test("πŸ’‘")); // true - correct
console.log(regex.test("🌑️")); // false - should be true
console.log(regex.test("β›…")); // true - correct
console.log(regex.test("πŸŒπŸ€")); // false - correct

Bagian C - Ekspresi reguler lainnya

  • Saya menemukan ini tetapi memberikan inkonsistensi yang serupa, meskipun tidak sama /(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|[\ud83c[\ude50\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g:
let regex = /^(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|[\ud83c[\ude50\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])$/g

console.log(regex.test("5️⃣")); // true - correct
console.log(regex.test("πŸ’‘")); // false - should be true
console.log(regex.test("🌑️")); // false - should be true
console.log(regex.test("β›…")); // true - correct
console.log(regex.test("πŸŒπŸ€")); // false - correct
  • Juga ini rusak parah (perubahan tes kedua berdasarkan tes pertama?)
let regex = /^(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|[\ud83c[\ude50\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])$/g

console.log(regex.test("β›ΉπŸΏβ€β™‚οΈ")); // false
console.log(regex.test("β›…")); // true
let regex = /^(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|[\ud83c[\ude50\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])$/g;

console.log(regex.test("β›Ή")); // true
console.log(regex.test("β›…")); // false

Apakah ada cara untuk mengatasi semua kekacauan emoji / unicode / regex ini? Apakah perpustakaan / apis satu-satunya cara? Bagaimana mereka melakukannya?

luxluxdev
sumber
1
Lihat regex101.com/r/dQEURi/1
Wiktor StribiΕΌew
2
Saya pribadi berpikir mempertahankan regex bukanlah ide yang sangat bagus, kecuali Anda membuatnya dari spesifikasi unicode . Sudah ada perpustakaan yang melakukan itu. Lihat emoji-regex dan emoji.json .
Jake Holzinger
Terima kasih Wiktor StribiΕΌew, regex itu berfungsi dengan sempurna! Bolehkah saya tahu bagaimana atau dari mana Anda mendapatkan ini?
luxluxdev
1
Ada waktu dan tempat untuk perpustakaan. IMHO ini salah satunya. Biaya mempertahankan ketergantungan dengan versi dan ukuran file tampaknya lebih besar daripada meminta orang lain untuk memecahkan masalah yang sangat rumit ini untuk Anda.
Chris
1
Re: "bagaimana mereka melakukannya" perpustakaan yang terhubung dengan Daniel Vickers merujuk ke: unicode.org/reports/tr29/#Default_Grapheme_Cluster_Table
Chris

Jawaban:

1

Menggunakan perpustakaan ini: https://github.com/foliojs/grapheme-breaker coba ini:

var str = "β›ΉπŸΏβ€β™‚οΈ";
var Grapheme = require('grapheme-splitter');
var splitter = new Grapheme();
console.log(splitter.splitGraphemes(str).length);

dan panjangnya harus kembali 1.

Daniel Vickers
sumber
Perpustakaan ini mengagumkan, tetapi sudah tidak aktif selama satu tahun sekarang, namun ini terinspirasi oleh github.com/foliojs/grapheme-breaker yang baru-baru ini aktif :) (saya menghapus komentar lama saya karena ada tautan yang salah)
luxluxdev
Terima kasih untuk itu, saya juga memperbarui tautan dalam jawaban saya.
Daniel Vickers
1

Emoji ditentukan dalam UAX # 51. Properti \p{Emoji}harus bekerja, tetapi tidak.

Lakukan dengan cara yang sulit. Parse emoji-*.txt:

perl -C -lne'
    if (my ($c) = $_ =~ /^((?:(?:[[:xdigit:]]+ )|[[:xdigit:]]+\.\.)[[:xdigit:]]+)/) {
        if ($c =~ /\.\./) { # ranges
             my ($f, $t) = map { hex } split /\.\./, $c;
             print for map { chr } $f..$t;
        } else { # sequences
             print join "", map { chr hex } split /\s+/, $c;
        }
    }
' emoji-*.txt

Ini memberi kita daftar emoji yang dipisahkan baris baru. Menggunakan Regexp :: Assemble :: Compressed, hasilnya adalah

/^(?:[\u{23EB}\u{23EC}\u{23F0}\u{2607}-\u{260D}\u{260F}\u{2610}\u{2616}\u{2617}\u{2619}-\u{261C}\u{261E}\u{261F}\u{2624}\u{2625}\u{2627}-\u{2629}\u{262B}-\u{262D}\u{2630}-\u{2637}\u{263B}-\u{263F}\u{2643}-\u{2647}\u{2654}-\u{265E}\u{2661}\u{2662}\u{2669}-\u{267A}\u{267C}\u{267D}\u{2680}-\u{2685}\u{2690}\u{2691}\u{269D}-\u{269F}\u{26A2}-\u{26A9}\u{26AC}-\u{26AF}\u{26B2}-\u{26BC}\u{26BF}-\u{26C3}\u{26C6}\u{26C7}\u{26C9}-\u{26CE}\u{26D5}-\u{26E8}\u{26EB}-\u{26EF}\u{26FB}\u{26FC}\u{26FE}-\u{2701}\u{2703}\u{2704}\u{2710}\u{2711}\u{2754}\u{2755}\u{2765}-\u{2767}\u{2795}-\u{2797}\u{1F000}-\u{1F003}\u{1F005}-\u{1F0CE}\u{1F0D0}-\u{1F0FF}\u{1F10D}-\u{1F10F}\u{1F16C}-\u{1F16F}\u{1F191}-\u{1F19A}\u{1F1AD}-\u{1F1E5}\u{1F201}\u{1F203}-\u{1F20F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F23C}-\u{1F23F}\u{1F249}-\u{1F30C}\u{1F310}-\u{1F314}\u{1F316}-\u{1F31B}\u{1F31D}-\u{1F320}\u{1F322}\u{1F323}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F377}\u{1F379}-\u{1F37C}\u{1F37E}-\u{1F384}\u{1F386}-\u{1F392}\u{1F394}\u{1F395}\u{1F39C}\u{1F39D}\u{1F3A0}-\u{1F3A6}\u{1F3A8}-\u{1F3AB}\u{1F3AF}-\u{1F3C1}\u{1F3C5}\u{1F3C8}\u{1F3C9}\u{1F3CF}-\u{1F3D3}\u{1F3E1}-\u{1F3EC}\u{1F3EE}-\u{1F3F2}\u{1F3F8}-\u{1F407}\u{1F409}-\u{1F414}\u{1F416}-\u{1F41E}\u{1F420}-\u{1F425}\u{1F427}-\u{1F43E}\u{1F440}\u{1F444}\u{1F445}\u{1F451}\u{1F452}\u{1F454}-\u{1F465}\u{1F479}-\u{1F47B}\u{1F47E}-\u{1F480}\u{1F484}\u{1F488}-\u{1F4A2}\u{1F4A4}-\u{1F4A9}\u{1F4AB}-\u{1F4AF}\u{1F4B1}\u{1F4B2}\u{1F4B4}-\u{1F4BA}\u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}?|\u{1F1F6}\u{1F1E6}?|\u{1F1FD}\u{1F1F0}?|\u{1F46F}\u{200D}?|\u{1F93C}\u{200D}?|\u{1F9DE}\u{200D}?|\u{1F9DF}\u{200D}?)$/u
Daxim
sumber
Terima kasih atas penjelasannya, sangat membantu! Namun saya tidak bisa membuat regex Anda yang dihasilkan berfungsi karena kesalahan keluar di mana pun saya mencobanya.
luxluxdev