Browse Source

make editor.js handle more load URLs

Gregg Tavares 6 years ago
parent
commit
192181c1e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      threejs/resources/editor.js

+ 1 - 1
threejs/resources/editor.js

@@ -58,7 +58,7 @@ function fixSourceLinks(url, source) {
   const srcRE = /(src=)"(.*?)"/g;
   const linkRE = /(href=)"(.*?")/g;
   const imageSrcRE = /((?:image|img)\.src = )"(.*?)"/g;
-  const loaderLoadRE = /(loader\.load)\(('|")(.*?)('|")/g;
+  const loaderLoadRE = /(loader.load[a-z]*)\(('|")(.*?)('|")/ig;
   const prefix = getPrefix(url);
 
   function addPrefix(url) {