Closed Lisennk closed 7 years ago
Create regexp group to act like this:
`хуйня😏`.replace(emojiRegex(), " - $1 - ");
In this scenario, why wouldn’t you use $& instead?
$&
`хуйня\u{1F60F}`.replace(emojiRegex(), ' - $& - '); // → 'хуйня - 😏 - '
Yeah, thanks
Create regexp group to act like this: