refactor(mediaPlaybackSpeed): improve find

This commit is contained in:
Nico 2024-06-19 19:39:42 +02:00 committed by GitHub
parent bf71bbc979
commit 777b5dde69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,7 +73,7 @@ export default definePlugin({
patches: [ patches: [
// voice message embeds // voice message embeds
{ {
find: "--:--", find: "\"--:--\"",
replacement: { replacement: {
match: /onVolumeShow:\i,onVolumeHide:\i\}\)(?<=useCallback\(\(\)=>\{let \i=(\i).current;.+?)/, match: /onVolumeShow:\i,onVolumeHide:\i\}\)(?<=useCallback\(\(\)=>\{let \i=(\i).current;.+?)/,
replace: "$&,$self.playbackSpeedComponent($1)" replace: "$&,$self.playbackSpeedComponent($1)"