This commit is contained in:
tetsuya-ki 2025-02-03 13:27:31 +09:00 committed by GitHub
parent a1965b56ae
commit 7814bef9b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ export default class extends Module {
if (!msg.text.includes('って呼んで')) return false;
if (msg.text.startsWith('って呼んで')) return false;
const name = msg.text.match(/^(.+?)って呼んで/g)![1];
const name = msg.extractedText.match(/\s*(.+?)って呼んで/)![1];
if (name.length > 10) {
msg.reply(serifs.core.tooLong);