
class Common {

    static sanitizeNickname(nickname) {
        return nickname.replace(/[^a-z]/ig, '').toLowerCase();
    }

    static avoidHighlighting(nickname) {
        return '\u8288' + nickname
    }
}

module.exports = Common;


class Common {

    static sanitizeNickname(nickname) {
        return nickname.replace(/[^a-z]/ig, '').toLowerCase();
    }

    static avoidHighlighting(nickname) {
        return '\u2060' + nickname
    }
}

module.exports = Common;

Use UTF-8 "word-joiner" to avoid highlighting