Disable Nyaize in quote

This commit is contained in:
Oni-Men 2020-02-29 00:01:16 +09:00
parent d3fd0f810a
commit 1b238905a5

View file

@ -32,7 +32,8 @@ function exclude(text: string): [string, Record<string, string>] {
.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];
}