fix patch find

This commit is contained in:
Amia 2024-06-20 00:30:43 +02:00
parent e7a1be6512
commit b542ee48a7
No known key found for this signature in database
GPG key ID: 9B2D60034D0730F2

View file

@ -116,7 +116,7 @@ export default definePlugin({
patches: [ patches: [
{ {
find: "isImageFile:function()", find: "png|jpe?g|webp|gif|",
replacement: { replacement: {
match: /(?<=png\|jpe\?g\|webp\|gif\|)/, match: /(?<=png\|jpe\?g\|webp\|gif\|)/,
replace: "svg|" replace: "svg|"