From c59152e4000393ad122855c26198c1d942497c00 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Fri, 25 Feb 2022 01:26:13 +0100 Subject: feat(cli): support data url (#13667) Closes #11141 --- runtime/js/40_compiler_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/js/40_compiler_api.js') 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}`; -- cgit v1.2.3