瀏覽代碼

style: remove superflous escaping in startsWith

rugk 1 周之前
父節點
當前提交
69243b7ba0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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(