Skip to content

Commit 6914509

Browse files
chore: remove validation from readExport but keep decodeURIComponent
1 parent f621916 commit 6914509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/exportsManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ export class ExportsManager extends EventEmitter<ExportsManagerEvents> {
111111

112112
public async readExport(exportName: string): Promise<string> {
113113
try {
114-
const exportNameWithExtension = validateExportName(exportName);
115-
const exportHandle = this.storedExports[exportNameWithExtension];
114+
exportName = decodeURIComponent(exportName);
115+
const exportHandle = this.storedExports[exportName];
116116
if (!exportHandle) {
117117
throw new Error("Requested export has either expired or does not exist!");
118118
}

0 commit comments

Comments
 (0)