mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Wrong band-aid
This commit is contained in:
@@ -7,11 +7,11 @@ module.exports = class DefaultEmojiArgumentType extends ArgumentType {
|
||||
}
|
||||
|
||||
validate(value) {
|
||||
value += value;
|
||||
return emojiRegex.test(value);
|
||||
}
|
||||
|
||||
parse(value) {
|
||||
value += value;
|
||||
return value.match(emojiRegex)[0];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user