Skip to content

Commit bb35250

Browse files
authored
changing match to fullmatch like openmc (#31)
1 parent 6b3dc6f commit bb35250

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/endf/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def zam(name: str) -> Tuple[int, int, int]:
119119
120120
"""
121121
try:
122-
symbol, A, state = _GNDS_NAME_RE.match(name).groups()
122+
symbol, A, state = _GNDS_NAME_RE.fullmatch(name).groups()
123123
except AttributeError:
124124
raise ValueError(f"'{name}' does not appear to be a nuclide name in "
125125
"GNDS format")

0 commit comments

Comments
 (0)