From 38267f0ec59424bc468a49a5219b7e93eab2843f Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Mon, 29 Aug 2022 17:40:34 +0800 Subject: [PATCH] Fix parsing mapping with # in the file name. --- lib/readResources.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/readResources.js b/lib/readResources.js index d167a9c7..9ec32c96 100644 --- a/lib/readResources.js +++ b/lib/readResources.js @@ -133,7 +133,7 @@ function readFile(object, uri, saveResourceId, options) { let absoluteUrl; try { absoluteUrl = new URL( - uri, + uri.replace("#", "%23"), hasResourceDirectory ? pathToFileURL(resourceDirectory) : undefined ); } catch (error) {