mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
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(/(https?:\/\/.*?)(?= |$)/gm, match => substitute(match)) // URL
|
||||||
.replace(/:([a-z0-9_+-]+):/gim, match => substitute(match)) // emoji
|
.replace(/:([a-z0-9_+-]+):/gim, match => substitute(match)) // emoji
|
||||||
.replace(/#([^\s.,!?'"#:\/\[\]【】]+)/gm, match => substitute(match)) // hashtag
|
.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];
|
return [replaced, map];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user