From 9f3dd60fbdc1a26309bc3d0ed53e684b84dd5d35 Mon Sep 17 00:00:00 2001 From: Nedyalko Andreev Date: Wed, 16 Jun 2021 15:49:00 +0300 Subject: [PATCH] Fix wrong regex expressions for loaders --- loader/loader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/loader.go b/loader/loader.go index 93d9de872db..63e5814ad5f 100644 --- a/loader/loader.go +++ b/loader/loader.go @@ -52,8 +52,8 @@ var ( fn loaderFunc expr *regexp.Regexp }{ - {"cdnjs", cdnjs, regexp.MustCompile(`^cdnjs.com/libraries/([^/]+)(?:/([(\d\.)]+-?[^/]*))?(?:/(.*))?$`)}, - {"github", github, regexp.MustCompile(`^github.com/([^/]+)/([^/]+)/(.*)$`)}, + {"cdnjs", cdnjs, regexp.MustCompile(`^cdnjs\.com/libraries/([^/]+)(?:/([(\d\.)]+-?[^/]*))?(?:/(.*))?$`)}, + {"github", github, regexp.MustCompile(`^github\.com/([^/]+)/([^/]+)/(.*)$`)}, } httpsSchemeCouldntBeLoadedMsg = `The moduleSpecifier "%s" couldn't be retrieved from` + ` the resolved url "%s". Error : "%s"`