diff --git a/test/dataUrlTest.js b/test/dataUrlTest.js index fd9089e..a96a36c 100644 --- a/test/dataUrlTest.js +++ b/test/dataUrlTest.js @@ -2,6 +2,6 @@ "use strict"; document.getElementById("code").textContent = atob( - document.getElementById("iframe").src.replace("data:text/html;base64,", "") + document.getElementById("iframe").src.replace(/^.+base64,/, "") ); }()); \ No newline at end of file diff --git a/test/dataUrlTest.php b/test/dataUrlTest.php index 6a286ac..41a0793 100644 --- a/test/dataUrlTest.php +++ b/test/dataUrlTest.php @@ -3,20 +3,149 @@