mathiasbynens / emoji-regex

A regular expression to match all Emoji-only symbols as per the Unicode Standard.
https://mths.be/emoji-regex
MIT License
1.73k stars 174 forks source link

Number is an emoji #40

Closed highfeed closed 5 years ago

highfeed commented 6 years ago

How can I fix it? I already read it.

const emojiRegex = require('emoji-regex/text.js')
console.log(emojiRegex().test('1')) // true
mathiasbynens commented 5 years ago

1 is an emoji because the Unicode consortium says so. Don’t use text.js if you don’t want to match Emoji symbols that render as text by default.

Duplicate of #33.