Skip to content

Commit 5a8ff7c

Browse files
authored
Update core.py (deepmodeling#7628)
1 parent 4031363 commit 5a8ff7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • interfaces/ASE_interface/abacuslite

interfaces/ASE_interface/abacuslite/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def switch_io_backend_version(version: str) -> bool:
6666
for detailed discussion, see issue #7260
6767
'''
6868
global __LEGACYIO__
69-
m = re.match(r'^v(\d+)\.(\d+)\.(\d+)(\.\d+|\-(alpha|beta|rc)\.\d+)?$', version)
69+
m = re.match(r'^v(\d+)\.(\d+)\.(\d+)(\.\d+|\-(alpha|beta|rc)\.\d+|\-(alpha|beta|rc)\d+)?$', version)
7070
assert m, f'Invalid format of version number, please check file version.h'
7171
assert int(m.group(1)) >= 3, f'ABACUS v2.x is not supported'
7272
if int(m.group(2)) >= 11:

0 commit comments

Comments
 (0)