fix poeple with multiple emojis

This commit is contained in:
Wes Bos 2023-02-23 12:11:49 -05:00
parent df9258f28a
commit 23a7679acf
2 changed files with 30 additions and 16 deletions

View file

@ -0,0 +1,13 @@
import people from '../src/data.js';
function stringLength(str) {
return Array.from(new Intl.Segmenter().segment(str)).length;
}
function checkEmojiLength(person) {
if(stringLength(person.emoji) > 1 && person.emoji) {
console.log(person.name, person.emoji);
}
}
people.map(checkEmojiLength);

View file

@ -153,6 +153,7 @@ module.exports = [
description: 'Scientist turned Web developer from the Great White North.',
url: 'https://alekzandriia.com/uses/',
twitter: '@alekzandriia',
// Allowing this multiple emoji because its cool
emoji: '🥼➡️👩‍💻',
country: '🇨🇦',
computer: 'apple',
@ -620,7 +621,7 @@ module.exports = [
'Technologist, software creator, wannabe hacker. Father. Dog Lover.',
url: 'https://codewithlove.blog/uses',
twitter: '@amore_codes',
emoji: '👨‍💻 ',
emoji: '👨‍💻',
country: '🇺🇸',
computer: 'apple',
phone: 'iphone',
@ -1875,7 +1876,7 @@ module.exports = [
'Web Developer, open-source enthusiast, gamer, and lifelong learner.',
url: 'https://www.amrdiab.dev/uses',
twitter: '@AmrHdiab',
emoji: '🚀👨‍💻',
emoji: '👨‍💻',
country: '🇬🇧',
computer: 'windows',
phone: 'android',
@ -1904,7 +1905,7 @@ module.exports = [
'🧙‍♂️ Open Source Engineer at prestd, GitHub Star - 🏊‍♂️🚴‍♂️🏃‍♂️ Triathlete (IRONMAN distance) - 🌱 ᴘʟᴀɴᴛ-ʙᴀsᴇᴅ',
url: 'https://avelino.run/uses',
twitter: '@avelinorun',
emoji: '🏊‍♂️🚴‍♂️🏃‍♂️',
emoji: '🏊‍♂️',
country: '🇧🇷',
computer: 'apple',
phone: 'iphone',
@ -1924,7 +1925,7 @@ module.exports = [
description: 'Product Designer. Photographer. Traveler.',
url: 'https://desktopofsamuel.com/uses',
twitter: '@desktopofsamuel',
emoji: '🚀💻',
emoji: '🚀',
country: '🇭🇰',
computer: 'apple',
phone: 'iphone',
@ -2029,7 +2030,7 @@ module.exports = [
description:
'Web Developer, Product Manager, Digital Marketer, always trying to learn more.',
url: 'https://yourdigitalaid.com/uses/',
emoji: '☕☕☕☕',
emoji: '☕',
twitter: '@William65692091',
country: '🇨🇦',
computer: 'windows',
@ -4417,7 +4418,7 @@ module.exports = [
'Fullstack Developer, Problemsolving, coffee and fancy terminaltricks!',
url: 'https://github.com/JonasJore/dotfiles/blob/master/uses-tech.md',
twitter: '@JonasJore',
emoji: '🍕',
emoji: '🍕',
country: '🇳🇴',
computer: 'linux',
phone: 'android',
@ -4437,7 +4438,7 @@ module.exports = [
description: 'Fullstack Developer',
url: 'https://marko-haberl.com/uses',
twitter: '@marko_haberl',
emoji: '🚀 💻',
emoji: '🚀',
country: '🇭🇷',
computer: 'linux',
phone: 'iphone',
@ -5667,7 +5668,7 @@ module.exports = [
description: 'Software Engineer focused on Web Technologies from India.',
url: 'https://shubhambattoo.in/uses',
twitter: '@Shubham_batt',
emoji: '🖖🎧',
emoji: '🎧',
country: '🇮🇳',
computer: 'linux',
phone: 'android',
@ -5762,7 +5763,7 @@ module.exports = [
'Back end developer who likes to develop front end on free time 🤷‍♂️. And I also blog.',
url: 'https://aaronuurman.com/uses',
twitter: '@aaronuurman',
emoji: '🍕🍺',
emoji: '🍕',
country: '🇪🇪',
computer: 'linux',
phone: 'android',
@ -5851,7 +5852,7 @@ module.exports = [
'Team lead, Experienced full-stack engineer & non-stop learner. :wq',
url: 'https://www.notion.so/Things-Prakhil-uses-e995e61834c242f1b739be9f8819fb0c',
twitter: '@Prakhil_tp',
emoji: '🖮🌏🧘🔭',
emoji: '🌏',
country: '🇮🇳',
computer: 'linux',
phone: 'android',
@ -6028,7 +6029,7 @@ module.exports = [
'Full stack developer loving the Laravel ecosystem. Sometimes I write about it.',
url: 'https://clintgwinter.com/uses',
twitter: '@ClintWinter2',
emoji: '🤓⛺',
emoji: '⛺',
country: '🇺🇸',
computer: 'windows',
phone: 'android',
@ -8781,7 +8782,7 @@ module.exports = [
description: 'Full stack Developer',
url: 'https://adilhaddaoui.com/uses',
twitter: '@ADiLHADDAOUI',
emoji: '👨‍💻 🚀',
emoji: '👨‍💻',
country: '🇲🇦',
computer: 'apple',
phone: 'iphone',
@ -10751,7 +10752,7 @@ module.exports = [
'Developer Advocate with a knack for public speaking & making videos',
url: 'https://fred.dev/uses',
twitter: '@fharper',
emoji: '✌🤦‍♂️',
emoji: '✌',
country: '🇨🇦',
computer: 'apple',
phone: 'iphone',
@ -12032,7 +12033,7 @@ module.exports = [
name: 'Thomas Large',
description: 'My name is Tom! I write code',
url: 'https://tomlarge.dev/uses',
emoji: ' 👨‍💻',
emoji: '👨‍💻',
country: '🏴󠁧󠁢󠁥󠁮󠁧󠁿',
computer: 'apple',
phone: 'iphone',
@ -14152,7 +14153,7 @@ module.exports = [
'Javascript lover, FullStack enthusiast, React Learner (current), Pet lover',
url: 'https://gist.github.com/lakshmipriyamukundan/ddd224306ce962f4f159f1065f0f0c67',
twitter: '@lak_mee',
emoji: ':😺 ',
emoji: '😺',
country: '🇮🇳',
computer: 'linux',
phone: 'android',
@ -14287,7 +14288,7 @@ module.exports = [
description: 'Developer, writer, creator. Solutions Architect @ Vercel.',
url: 'https://leerob.io/uses',
twitter: '@leeerob',
emoji: '🏼🌴',
emoji: '🌴',
country: '🇺🇸',
computer: 'apple',
phone: 'iphone',