From 1b238905a5535267d32d7e1aec8afd8bb07b0619 Mon Sep 17 00:00:00 2001 From: Oni-Men Date: Sat, 29 Feb 2020 00:01:16 +0900 Subject: [PATCH] Disable Nyaize in quote --- src/misc/nyaize.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/misc/nyaize.ts b/src/misc/nyaize.ts index 9fbfc8b500..22f90b86cd 100644 --- a/src/misc/nyaize.ts +++ b/src/misc/nyaize.ts @@ -32,7 +32,8 @@ function exclude(text: string): [string, Record] { .replace(/(https?:\/\/.*?)(?= |$)/gm, match => substitute(match)) // URL .replace(/:([a-z0-9_+-]+):/gim, match => substitute(match)) // emoji .replace(/#([^\s.,!?'"#:\/\[\]【】]+)/gm, match => substitute(match)) // hashtag - .replace(/@\w([\w-]*\w)?(?:@[\w.\-]+\w)?/gm, match => substitute(match)); // mention + .replace(/@\w([\w-]*\w)?(?:@[\w.\-]+\w)?/gm, match => substitute(match)) // mention + .replace(/^>[^\n]+/gm, match => substitute(match)); // quote return [replaced, map]; }