Skip to content

Commit a97f202

Browse files
committed
fix(connection-form): use a double dash for separating appName identifiers
A single `-` can be hard to separate in cases such a vscode where the defaultAppName is `mongodb-vscode` as well as with UUIDs so we use `--` to make this separation clearer.
1 parent 5bd08a4 commit a97f202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/connection-form/src/utils/set-app-name-if-missing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export function setAppNameParamIfMissing({
2424
if (!searchParams.has('appName') && defaultAppName !== undefined) {
2525
const appName = isAtlas
2626
? `${defaultAppName}${
27-
telemetryAnonymousId ? `-${telemetryAnonymousId}` : ''
28-
}-${connectionId}`
27+
telemetryAnonymousId ? `--${telemetryAnonymousId}` : ''
28+
}--${connectionId}`
2929
: defaultAppName;
3030

3131
searchParams.set('appName', appName);

0 commit comments

Comments
 (0)