Skip to content

Commit 95d8e08

Browse files
fixed not picking up plus sign
1 parent d63d435 commit 95d8e08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schemascii/components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def find_small(grid: Grid) -> tuple[list[Cbox], list[BOMData]]:
1616
boms.append(BOMData(m.group(1),
1717
m.group(2), m.group(3)[1:]))
1818
else:
19-
components.append(Cbox(complex(m.start(), i), complex(m.end(),
20-
i),
19+
components.append(Cbox(complex(m.start(), i),
20+
complex(m.end() - 1, i),
2121
m.group(1), m.group(2)))
2222
for z in range(*m.span(0)):
2323
grid.setmask(complex(z, i))

0 commit comments

Comments
 (0)