Skip to content

Commit 5046de4

Browse files
authored
Add period to legal prefix chars (#301)
* Add period to legal prefix chars * Update test_parsers.py
1 parent d22a2c3 commit 5046de4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sssom/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ class NoCURIEException(ValueError):
945945
"""An exception raised when a CURIE can not be parsed with a given prefix map."""
946946

947947

948-
CURIE_RE = re.compile(r"[A-Za-z0-9_]+[:][A-Za-z0-9_]")
948+
CURIE_RE = re.compile(r"[A-Za-z0-9_.]+[:][A-Za-z0-9_]")
949949

950950

951951
def is_curie(string: str) -> bool:

tests/test_parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_parse_obographs(self):
9898
write_table(msdf, file)
9999
self.assertEqual(
100100
len(msdf.df),
101-
9876,
101+
9880,
102102
f"{self.obographs_file} has the wrong number of mappings.",
103103
)
104104

0 commit comments

Comments
 (0)