Pārlūkot izejas kodu

style: remove superflous escaping in startsWith

rugk 1 nedēļu atpakaļ
vecāks
revīzija
69243b7ba0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      js/privatebin.js

+ 1 - 1
js/privatebin.js

@@ -2917,7 +2917,7 @@ window.PrivateBin = (function () {
             // prevents executing embedded scripts when CSP is not set and user
             // right-clicks/long-taps and opens the SVG in a new tab - prevented
             // in the preview by use of an img tag, which disables scripts, too
-            if (mimeType.startsWith('image\/svg')) {
+            if (mimeType.startsWith('image/svg')) {
                 try {
                     // attempt to UTF-8 decode the SVG data
                     const svgBuffer = Uint8Array.from(