From f68e60537ad770e4d790e46dd2ad111adf22f16b Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 3 Sep 2018 11:59:55 +0900 Subject: [PATCH] Improve AI --- src/utils/or.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/or.ts b/src/utils/or.ts index 09909b9..3efa464 100644 --- a/src/utils/or.ts +++ b/src/utils/or.ts @@ -25,6 +25,8 @@ export default function(text: string, words: (string | RegExp)[]): boolean { text = text .replace(/。$/, '') .replace(/です$/, '') + .replace(/(\.|…)+$/, '') + .replace(/[♪♥]+$/, '') .replace(/^藍/, '') .replace(/^ちゃん/, '') .replace(/、+$/, '');