Skip to content

Commit f659204

Browse files
committed
fix(model-datastructure): reverted accidental change in deserialization of references
1 parent 17744ca commit f659204

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model-datastructure/src/commonMain/kotlin/org/modelix/model/persistent/OperationSerializer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class OperationSerializer private constructor() {
7474
return when {
7575
serialized.isNullOrEmpty() -> null
7676
serialized.matches(localNodeIdPattern) -> LocalPNodeReference(longFromHex(serialized))
77-
unescape(serialized)!!.matches(globalNodeIdPattern) -> {
77+
serialized.matches(globalNodeIdPattern) -> {
7878
// This is how PNodeReference was serialized before, but the deserialization of the CPVersion
7979
// should fail with this duplicate usage of the '/' separator.
8080
// This branch should not be reachable and can be removed if we are absolutely sure about that.

0 commit comments

Comments
 (0)