mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-07 18:32:28 +01:00
Disable Nyaize in quote
This commit is contained in:
parent
d3fd0f810a
commit
1b238905a5
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue