summaryrefslogtreecommitdiff
path: root/runtime/js/40_compiler_api.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/40_compiler_api.js')
-rw-r--r--runtime/js/40_compiler_api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/js/40_compiler_api.js b/runtime/js/40_compiler_api.js
index 011373eb0..bd787ef74 100644
--- a/runtime/js/40_compiler_api.js
+++ b/runtime/js/40_compiler_api.js
@@ -54,7 +54,7 @@
function checkRelative(specifier) {
return StringPrototypeMatch(
specifier,
- /^([\.\/\\]|https?:\/{2}|file:\/{2})/,
+ /^([\.\/\\]|https?:\/{2}|file:\/{2}|data:)/,
)
? specifier
: `./${specifier}`;