Skip to content

Commit

Permalink
Add period to legal prefix chars (#301)
Browse files Browse the repository at this point in the history
* Add period to legal prefix chars

* Update test_parsers.py
  • Loading branch information
matentzn authored Aug 8, 2022
1 parent d22a2c3 commit 5046de4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sssom/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ class NoCURIEException(ValueError):
"""An exception raised when a CURIE can not be parsed with a given prefix map."""


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


def is_curie(string: str) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_parse_obographs(self):
write_table(msdf, file)
self.assertEqual(
len(msdf.df),
9876,
9880,
f"{self.obographs_file} has the wrong number of mappings.",
)

Expand Down

0 comments on commit 5046de4

Please sign in to comment.