mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 05:08:00 +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()
|
return text.trim()
|
||||||
.replace(/[!!]+$/, '')
|
.replace(/[!!]+$/, '')
|
||||||
.replace(/。$/, '')
|
.replace(/。$/, '')
|
||||||
.replace(/(です|デス)$/, '');
|
.replace(/デス$/, '')
|
||||||
|
.replace(/^藍/, '')
|
||||||
|
.replace(/^チャン/, '')
|
||||||
|
.replace(/、+$/, '');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue