Improve AI

This commit is contained in:
syuilo 2018-09-03 11:59:55 +09:00
parent 3d3147c606
commit f68e60537a

View file

@ -25,6 +25,8 @@ export default function(text: string, words: (string | RegExp)[]): boolean {
text = text
.replace(/。$/, '')
.replace(/です$/, '')
.replace(/(\.|…)+$/, '')
.replace(/[♪♥]+$/, '')
.replace(/^藍/, '')
.replace(/^ちゃん/, '')
.replace(/、+$/, '');