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
3d3147c606
commit
f68e60537a
|
@ -25,6 +25,8 @@ export default function(text: string, words: (string | RegExp)[]): boolean {
|
||||||
text = text
|
text = text
|
||||||
.replace(/。$/, '')
|
.replace(/。$/, '')
|
||||||
.replace(/です$/, '')
|
.replace(/です$/, '')
|
||||||
|
.replace(/(\.|…)+$/, '')
|
||||||
|
.replace(/[♪♥]+$/, '')
|
||||||
.replace(/^藍/, '')
|
.replace(/^藍/, '')
|
||||||
.replace(/^ちゃん/, '')
|
.replace(/^ちゃん/, '')
|
||||||
.replace(/、+$/, '');
|
.replace(/、+$/, '');
|
||||||
|
|
Loading…
Reference in a new issue