Spaces:
Sleeping
Sleeping
Fix pattern parser single-digit clue rows
Browse files
submodules/rlp/rlp/ascii_parser.py
CHANGED
|
@@ -37,7 +37,10 @@ def filter_control_chars(text):
|
|
| 37 |
if stripped == "":
|
| 38 |
cleaned_lines.append(line)
|
| 39 |
elif len(stripped) == 1:
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
| 41 |
elif any(c in line for c in ["|", "#", ".", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]):
|
| 42 |
cleaned_lines.append(line)
|
| 43 |
elif "+" in line:
|
|
|
|
| 37 |
if stripped == "":
|
| 38 |
cleaned_lines.append(line)
|
| 39 |
elif len(stripped) == 1:
|
| 40 |
+
if stripped.isdigit():
|
| 41 |
+
cleaned_lines.append(line)
|
| 42 |
+
else:
|
| 43 |
+
continue
|
| 44 |
elif any(c in line for c in ["|", "#", ".", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]):
|
| 45 |
cleaned_lines.append(line)
|
| 46 |
elif "+" in line:
|