Disable Nyaize in quote
This commit is contained in:
parent
d3fd0f810a
commit
1b238905a5
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue