From 5832a62ff4a01f7cb1287710680585075f2e3bae Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 2 Sep 2018 10:47:20 +0900 Subject: [PATCH] Fix bug --- src/modules/core/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/core/index.ts b/src/modules/core/index.ts index c826ba0..5b9630b 100644 --- a/src/modules/core/index.ts +++ b/src/modules/core/index.ts @@ -132,7 +132,7 @@ export default class CoreModule implements IModule { //#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] .substr(1);