mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 23:48:01 +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