nilshoehing commited on
Commit
350c17c
·
verified ·
1 Parent(s): 52f5c59

Fix pattern parser single-digit clue rows

Browse files
Files changed (1) hide show
  1. submodules/rlp/rlp/ascii_parser.py +4 -1
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
- continue
 
 
 
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: