Commit 2dbadb01 authored by nanahira's avatar nanahira

cut non-number

parent 0a0faf58
...@@ -142,8 +142,10 @@ export default class HisoutensokuJammerPlugin ...@@ -142,8 +142,10 @@ export default class HisoutensokuJammerPlugin
chineseCharacter.value, chineseCharacter.value,
); );
} }
if (!receivedMessage.match(/\d/)) {
// must be 1 number to match // Cut non-number pattern
receivedMessage = receivedMessage.match(/\d.*\d/)?.[0];
if (!receivedMessage) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment