From bcceff232ded01eb28575db7151b4116968945c1 Mon Sep 17 00:00:00 2001 From: axetroy Date: Fri, 7 Feb 2020 03:11:50 +0800 Subject: [PATCH] fix: create local module no work --- client/src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/extension.ts b/client/src/extension.ts index fa14d99..f2bbbc1 100644 --- a/client/src/extension.ts +++ b/client/src/extension.ts @@ -625,7 +625,7 @@ Executable ${this.denoInfo.executablePath}`; return; } - if (text.indexOf(".") !== 0 || text.indexOf("/") !== 0) { + if (text.indexOf(".") !== 0 && text.indexOf("/") !== 0) { this.output.appendLine( `Cannot create module \`${text }\`. Module is not relative or absolute`