Skip to content

Commit 5862c7c

Browse files
authored
Merge pull request #422 from Nick-1234531/DOT-6867
2 parents 2862a87 + 80cb355 commit 5862c7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default async (ctx: Context): Promise<FastifyInstance<Server, IncomingMes
7676
throw new Error(`Invalid snapshot options; rejectionThreshold (${snapshot.options.rejectionThreshold}) must be greater than approvalThreshold (${snapshot.options.approvalThreshold})`);
7777
}
7878
}
79-
snapshot.name=snapshot?.name?.trim().replace(/\s+/g,'_');
79+
snapshot.name=snapshot?.name?.trim();
8080

8181
// Fetch sessionId from snapshot options if present
8282
const sessionId = snapshot?.options?.sessionId;
@@ -243,7 +243,7 @@ export default async (ctx: Context): Promise<FastifyInstance<Server, IncomingMes
243243
try {
244244
ctx.log.debug(`request.query : ${JSON.stringify(request.query)}`);
245245
const { contextId, pollTimeout, snapshotName: rawSnapshotName } = request.query as { contextId: string, pollTimeout: number, snapshotName: string };
246-
const snapshotName = rawSnapshotName?.trim().replace(/\s+/g,'_');
246+
const snapshotName = rawSnapshotName?.trim();
247247
if (!contextId || !snapshotName) {
248248
throw new Error('contextId and snapshotName are required parameters');
249249
}

0 commit comments

Comments
 (0)