Skip to content
Snippets Groups Projects
Verified Commit b45df1f0 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Fix issue related to shorthand URL notations

parent 78e9a7c7
No related branches found
No related tags found
No related merge requests found
......@@ -107,13 +107,17 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
if (resourcePattern.startsWith(resourceMold)) {
let targetPath = resourceMappings[resourceMold].path;
let targetPath, version;
targetPath = resourceMappings[resourceMold].path;
targetPath = targetPath.replace(VERSION_PLACEHOLDER, versionNumber);
version = versionNumber && versionNumber[0] || targetPath.match(VERSION_EXPRESSION);
// Prepare and return a local target.
return {
source: channelHost,
version: versionNumber[0],
version: version,
path: targetPath
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment