limit length
This commit is contained in:
parent
5824419ee1
commit
ee3d27f6ea
2 changed files with 2 additions and 2 deletions
|
|
@ -480,7 +480,7 @@ export default definePlugin({
|
|||
find: "#{intl::MESSAGE_EDITED}",
|
||||
replacement: {
|
||||
// Make edit marker clickable
|
||||
match: /(isInline:!1,children:.+?)"span",\{(?=className:)/,
|
||||
match: /(isInline:!1,children:.{0,50}?)"span",\{(?=className:)/,
|
||||
replace: "$1$self.EditMarker,{message:arguments[0].message,"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ export default definePlugin({
|
|||
{
|
||||
find: '["VIDEO","CLIP","AUDIO"]',
|
||||
replacement: {
|
||||
match: /(\[\i>0&&\i\.length>0.+?children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
|
||||
match: /(\[\i>0&&\i\.length>0.{0,150}?children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
|
||||
replace: (_, rest, origChildren, showDownload, isVisualMediaType) => `${rest}[${showDownload}&&${isVisualMediaType}&&$self.PictureInPictureButton(),...${origChildren}]`
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue