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