Skip to content

Commit c2dd2c6

Browse files
authored
Don't show "(unknown context)" (#26)
* Don't show "(unknown context)" It's probably not super useful to preserve this info. * break out foundation tests * wip
1 parent cdf46f3 commit c2dd2c6

File tree

3 files changed

+641
-579
lines changed

3 files changed

+641
-579
lines changed

Sources/CustomDump/Internal/AnyType.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@ func typeName(_ type: Any.Type) -> String {
66
return
77
name
88
.replacingOccurrences(
9-
of: #"<.+>"#,
9+
of: #"<.+>|\(unknown context at \$[[:xdigit:]]+\)\."#,
1010
with: "",
1111
options: .regularExpression
1212
)
13-
.replacingOccurrences(
14-
of: #"\(unknown context at \$[[:xdigit:]]+\)"#,
15-
with: "(unknown context)",
16-
options: .regularExpression
17-
)
1813
}

0 commit comments

Comments
 (0)