mirror of
https://github.com/denoland/deno.git
synced 2025-08-31 07:47:46 +00:00
parent
cd04b6852f
commit
c59152e400
2 changed files with 17 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
|||
function checkRelative(specifier) {
|
||||
return StringPrototypeMatch(
|
||||
specifier,
|
||||
/^([\.\/\\]|https?:\/{2}|file:\/{2})/,
|
||||
/^([\.\/\\]|https?:\/{2}|file:\/{2}|data:)/,
|
||||
)
|
||||
? specifier
|
||||
: `./${specifier}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue