mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 05:08:00 +00:00
Fix bug
This commit is contained in:
parent
5b59823edd
commit
5832a62ff4
|
@ -132,7 +132,7 @@ export default class CoreModule implements IModule {
|
||||||
//#endregion
|
//#endregion
|
||||||
};
|
};
|
||||||
|
|
||||||
const tension = (msg.text.match(/[!!]{2,}/g) || [])
|
const tension = (msg.text.match(/[!!]{2,}/g) || [''])
|
||||||
.sort((a, b) => a.length < b.length ? 1 : -1)[0]
|
.sort((a, b) => a.length < b.length ? 1 : -1)[0]
|
||||||
.substr(1);
|
.substr(1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue