diff options
author | Simon Lecoq <22963968+lowlighter@users.noreply.github.com> | 2022-02-25 01:26:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 11:26:13 +1100 |
commit | c59152e4000393ad122855c26198c1d942497c00 (patch) | |
tree | 87ca62ef6ace4e950107e0da9a8deae38f53cd93 /runtime/js/40_compiler_api.js | |
parent | cd04b6852faae594980598a9cf93ef1ac187f244 (diff) |
feat(cli): support data url (#13667)
Closes #11141
Diffstat (limited to 'runtime/js/40_compiler_api.js')
-rw-r--r-- | runtime/js/40_compiler_api.js | 2 |
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}`; |