Skip to content

Commit 8d9d460

Browse files
gribnoysupaddaleax
andauthored
chore(web): stricter regex in test
Co-authored-by: Anna Henningsen <[email protected]>
1 parent cfa2715 commit 8d9d460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compass-web/src/connection-storage.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ describe('AtlasCloudConnectionStorage', function () {
264264
payload = Array.from(Object.values(testClusters));
265265
}
266266
const { groups } =
267-
/\/nds\/clusters\/abc\/(?<clusterName>.+?)\/+?/.exec(path) ?? {
267+
/^\/nds\/clusters\/abc\/(?<clusterName>.+?)\/.+?$/.exec(path) ?? {
268268
groups: undefined,
269269
};
270270
if (groups?.clusterName) {

0 commit comments

Comments
 (0)