mirror of
https://github.com/syuilo/ai.git
synced 2024-11-12 17:08:00 +00:00
Improve AI
This commit is contained in:
parent
3d3147c606
commit
f68e60537a
|
@ -25,6 +25,8 @@ export default function(text: string, words: (string | RegExp)[]): boolean {
|
|||
text = text
|
||||
.replace(/。$/, '')
|
||||
.replace(/です$/, '')
|
||||
.replace(/(\.|…)+$/, '')
|
||||
.replace(/[♪♥]+$/, '')
|
||||
.replace(/^藍/, '')
|
||||
.replace(/^ちゃん/, '')
|
||||
.replace(/、+$/, '');
|
||||
|
|
Loading…
Reference in a new issue