mirror of
https://github.com/syuilo/ai.git
synced 2024-12-22 08:21:08 +00:00
Improve AI
This commit is contained in:
parent
fc5e3de706
commit
70074482f5
|
@ -13,5 +13,8 @@ function cleanup(text: string): string {
|
|||
return text.trim()
|
||||
.replace(/[!!]+$/, '')
|
||||
.replace(/。$/, '')
|
||||
.replace(/(です|デス)$/, '');
|
||||
.replace(/デス$/, '')
|
||||
.replace(/^藍/, '')
|
||||
.replace(/^チャン/, '')
|
||||
.replace(/、+$/, '');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue