Skip to content

Commit

Permalink
relaxed segment_salami_lower to match spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Dec 5, 2016
1 parent 8302b45 commit a95b034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jams/schemata/namespaces/segment/salami_lower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"value": {
"type": "string",
"pattern": "^([a-z])\\1*'*$|^[Ss]ilence$"
"pattern": "^[a-z][a-z]?'*$|^[Ss]ilence$"
},
"dense": false,
"description": "Lowercase label to identify the type of a segment based on the SALAMI guidelines."
Expand Down
2 changes: 1 addition & 1 deletion tests/namespace_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ def __test(label):

ann.validate()

for line in ['a', "a'", "a'''", "silence", "Silence", six.u('a'), 'aa', "aa'"]:
for line in ['a', "a'", "a'''", "silence", "Silence", six.u('a'), 'aa', "aa'", 'ab']:
yield __test, line

for line in [23, None, 'A', 'S', 'a23', ' Silence 23', 'aba', 'aab']:
Expand Down

0 comments on commit a95b034

Please sign in to comment.