Improve AI

This commit is contained in:
syuilo 2018-09-02 22:56:21 +09:00
parent fc5e3de706
commit 70074482f5

View file

@ -13,5 +13,8 @@ function cleanup(text: string): string {
return text.trim()
.replace(/[!]+$/, '')
.replace(/。$/, '')
.replace(/(です|デス)$/, '');
.replace(/デス$/, '')
.replace(/^藍/, '')
.replace(/^チャン/, '')
.replace(/、+$/, '');
}