Skip to content

Commit 3859ebe

Browse files
committed
Fixed #11
1 parent dac3160 commit 3859ebe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/codext/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.15.7
1+
1.15.8

src/codext/__common__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def getregentry(encoding):
261261
while True:
262262
try:
263263
g = m.group(i) or ""
264-
if g.isdigit() and not g.startswith("0") and "".join(set(g)) != "01":
264+
if g.isdigit() and not g.startswith("0") and (re.match(r"10+", g) or "".join(set(g)) != "01"):
265265
g = int(g)
266266
args += [g]
267267
i += 1

0 commit comments

Comments
 (0)