We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f01009c commit 0f5c4afCopy full SHA for 0f5c4af
src/pymatgen/io/gaussian.py
@@ -86,7 +86,7 @@ class GaussianInput:
86
"""A Gaussian input file."""
87
88
# Commonly used regex patterns
89
- _zmat_patt = re.compile(r"^(\w+)*([\s,]+(\w+)[\s,]+(\w+))*[\-\.\s,\w]*$")
+ _zmat_patt = re.compile(r"^(\w+)([\s,]+(\w+)[\s,]+(\w+)){0,3}[\-\.\s,\w]*$")
90
_xyz_patt = re.compile(r"^(\w+)[\s,]+([\d\.eE\-]+)[\s,]+([\d\.eE\-]+)[\s,]+([\d\.eE\-]+)[\-\.\s,\w.]*$")
91
92
def __init__(
0 commit comments