stripNSM static method

String stripNSM(
  1. String name
)

When processing emojis, we don't need to store the graphical byte which is 0xfe0f, or so-called 'Non-Spacing Mark'.

Implementation

static String stripNSM(String name) => name.replaceAll(
    RegExp(EmojiConst.charNonSpacingMark), EmojiConst.charEmpty);