You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could the regular expression used internally to match Twemoji be exported? I think it could be very useful to find supported Unicode emojis within a string. Over 85% of this package's source code is the regex, and it's not even directly usable, which just seems a bit odd to me. It's really the most important part of the whole package.
You can currently import it directly with the full path (import twemojiRegexp from "@twemoji/parser/dist/lib/regex.js";), but it'd be preferable if it was explicitly exported.
The text was updated successfully, but these errors were encountered:
Could you tell me a bit more about your use case @RedGuy12? Is there some reason you're against using the parse function exported by the package to use the regex?
Could the regular expression used internally to match Twemoji be exported? I think it could be very useful to find supported Unicode emojis within a string. Over 85% of this package's source code is the regex, and it's not even directly usable, which just seems a bit odd to me. It's really the most important part of the whole package.
You can currently import it directly with the full path (
import twemojiRegexp from "@twemoji/parser/dist/lib/regex.js";
), but it'd be preferable if it was explicitly exported.The text was updated successfully, but these errors were encountered: