Commit
·
15f3753
1
Parent(s):
a5591e3
bytestring
Browse files
dist.py
CHANGED
|
@@ -156,14 +156,14 @@ def print_match_summary(str1, str2, wildcard_offsets_str1=None, wildcard_offsets
|
|
| 156 |
)
|
| 157 |
|
| 158 |
# Create visual representations of the strings with wildcard markers
|
| 159 |
-
str1_visual =
|
| 160 |
for i, char in enumerate(str1):
|
| 161 |
if i in wildcard_offsets_str1:
|
| 162 |
str1_visual += f"[{char}]" # Mark wildcards with brackets
|
| 163 |
else:
|
| 164 |
str1_visual += char
|
| 165 |
|
| 166 |
-
str2_visual =
|
| 167 |
for i, char in enumerate(str2):
|
| 168 |
if i in wildcard_offsets_str2:
|
| 169 |
str2_visual += f"[{char}]" # Mark wildcards with brackets
|
|
|
|
| 156 |
)
|
| 157 |
|
| 158 |
# Create visual representations of the strings with wildcard markers
|
| 159 |
+
str1_visual = type(str1)()
|
| 160 |
for i, char in enumerate(str1):
|
| 161 |
if i in wildcard_offsets_str1:
|
| 162 |
str1_visual += f"[{char}]" # Mark wildcards with brackets
|
| 163 |
else:
|
| 164 |
str1_visual += char
|
| 165 |
|
| 166 |
+
str2_visual = type(str2)()
|
| 167 |
for i, char in enumerate(str2):
|
| 168 |
if i in wildcard_offsets_str2:
|
| 169 |
str2_visual += f"[{char}]" # Mark wildcards with brackets
|