Skip to content

Commit

Permalink
Update EC record... again
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Feb 8, 2021
1 parent 0767232 commit 2cdff10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bioregistry/data/bioregistry.json
Original file line number Diff line number Diff line change
Expand Up @@ -4558,7 +4558,7 @@
"prefix": "ec-code"
},
"name": "Enzyme Nomenclature",
"pattern": "^\\d{1,2}(\\.\\d{0,2}){0,3}$",
"pattern": "^\\d{1,2}(\\.\\d{0,3}){0,3}$",
"synonyms": [
"EC",
"EC-CODE",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_patterns(self):
if external_pattern:
self.assertEqual(pattern, external_pattern, msg=f'{prefix}: {key} pattern not same')

for eccode in ['1', '1.1', '1.1.1', '1.1.1.1']:
for eccode in ['1', '1.1', '1.1.1', '1.1.1.1', '1.1.123.1', '1.1.1.123']:
with self.subTest(eccode=eccode):
self.assertTrue(bioregistry.validate('eccode', eccode))

Expand Down

0 comments on commit 2cdff10

Please sign in to comment.