Skip to content

Commit

Permalink
fix(RetroPath2.py): update regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
tduigou committed Dec 17, 2021
1 parent a8cc5fa commit c8552a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions retropath2_wrapper/RetroPath2.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ def check_inchi_from_file(
# Other (sub-)layers
# matches:
# (/.+)? --> if '/' is present, then at least one character/symbol is mandatory
# if match('InChI=1(S)?/(([a-z|[A-Z])\d+)+(/.+)?$', inchi) is None:
if match('InChI=1(S)?/(([a-z|[A-Z])+\d+)+(/.+)?$', inchi) is None:
if match('InChI=1(S)?/(([a-z|[A-Z])+\d*)+(/.+)?$', inchi) is None:
logger.error(' {inchi} is not a valid InChI notation'.format(inchi=inchi))
return ''

Expand Down

0 comments on commit c8552a0

Please sign in to comment.