Skip to content

Commit

Permalink
fix issue #114
Browse files Browse the repository at this point in the history
  • Loading branch information
xlcnd committed Oct 5, 2022
1 parent a33cbbc commit 10a10cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isbnlib/_msk.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def msk(isbn, separator='-'):
buf = ib[igi:cur + 1]
group = group + buf[-1:] # <-- HACK!

if idx is not None: # <-- issue #114 (idx = 0 is a valid possibility)
if idx is not None: # <-- issue #114 (idx=0 is valid too) [thanks @slint]
if isbn10:
group = group[4:]
check = check10
Expand Down

0 comments on commit 10a10cc

Please sign in to comment.