diff --git a/indigo/analysis/refs/provisions.py b/indigo/analysis/refs/provisions.py index f06dd7399..9a68e78ba 100644 --- a/indigo/analysis/refs/provisions.py +++ b/indigo/analysis/refs/provisions.py @@ -237,6 +237,7 @@ class ProvisionRefsResolver: "section": "section", "sections": "section", "schedule": "attachment", + "schedules": "attachment", "subparagraph": ["subparagraph", "paragraph", "item"], "subparagraphs": ["subparagraph", "paragraph", "item"], "sub-paragraph": ["subparagraph", "paragraph", "item"], diff --git a/indigo/tests/test_provision_refs.py b/indigo/tests/test_provision_refs.py index 00d2e2bf7..bd0cec4e8 100644 --- a/indigo/tests/test_provision_refs.py +++ b/indigo/tests/test_provision_refs.py @@ -1519,6 +1519,7 @@ def test_schedule_num(self):

In Schedule 2.

In Schedule 2 and Schedule 2.

In Schedule 2 to 2.

+

In Schedules 2, 2 and 2.

In Scheduled work...

In the Schedule

@@ -1534,6 +1535,7 @@ def test_schedule_num(self):

In Schedule 2.

In Schedule 2 and Schedule 2.

In Schedule 2 to 2.

+

In Schedules 2, 2 and 2.

In Scheduled work...

In the Schedule

diff --git a/indigo/tests/test_provision_refs_grammar.py b/indigo/tests/test_provision_refs_grammar.py index 2dddaa94c..c96c94475 100644 --- a/indigo/tests/test_provision_refs_grammar.py +++ b/indigo/tests/test_provision_refs_grammar.py @@ -383,6 +383,14 @@ def test_schedules_num_range(self): ], result.references) self.assertIsNone(result.target) + result = parse_provision_refs("Schedules 10, 11 and 12") + self.assertEqual([ + MainProvisionRef('attachment', ProvisionRef('Schedule 10', 0, 12)), + MainProvisionRef('attachment', ProvisionRef('Schedule 11', 14, 16, separator='and_or')), + MainProvisionRef('attachment', ProvisionRef('Schedule 12', 21, 23, separator='and_or')), + ], result.references) + self.assertIsNone(result.target) + def test_schedules_the_eng(self): result = parse_provision_refs("the Schedule") self.assertEqual([