Skip to content

Commit 176eac0

Browse files
Limit split on : to a single element
Co-authored-by: Isaac To <[email protected]>
1 parent 96f056c commit 176eac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dandi/dandiset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _get_identifier(metadata: dict) -> str | None:
141141
assert isinstance(id_, str)
142142
# result of https://github.com/dandi/dandi-cli/pull/348 which ???
143143
# TODO: RF to avoid this evil!!!
144-
id_ = id_.split(":")[-1]
144+
id_ = id_.split(":", maxsplit=1)[-1]
145145

146146
assert id_ is None or isinstance(id_, str)
147147
return id_

0 commit comments

Comments
 (0)