We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fd8a57 commit 63b4076Copy full SHA for 63b4076
src/compiler/moduleSpecifiers.ts
@@ -448,7 +448,7 @@ namespace ts.moduleSpecifiers {
448
startsWith(relativeToBaseUrl, prefix) &&
449
endsWith(relativeToBaseUrl, suffix) ||
450
!suffix && relativeToBaseUrl === removeTrailingDirectorySeparator(prefix)) {
451
- const matchedStar = relativeToBaseUrl.substr(prefix.length, relativeToBaseUrl.length - suffix.length);
+ const matchedStar = relativeToBaseUrl.substr(prefix.length, relativeToBaseUrl.length - suffix.length - prefix.length);
452
return key.replace("*", matchedStar);
453
}
454
0 commit comments