-
released this
2026-03-26 18:45:48 +00:00 | 0 commits to main since this releaseFixed
leg_get_sectionnow correctly extracts titles from API responses — Dublin Coredc:titleuses lowercase after namespace prefix removal, parser now checks both casesleg_get_sectionnow unwrapsPblockandP1group/P2group/P3groupcontainer elements that the real API uses to wrap section content inside<Body>DocumentMainTypelookup now navigates intoDocumentClassificationelement where the real API nests it, and extracts the short type code (e.g.ukpga) from the URI instead of relying on the long form value (e.g.UnitedKingdomPublicGeneralAct)extractStructuredText()now handlesUnorderedList,OrderedList,ListItem, andParaelements for legislation containing bullet-point lists (e.g. Equality Act 2010 s.4)parseContents()now handlesContentsPblockelements used in table of contents responses- Added
SecondaryMetadatafallback for parsing statutory instruments
Tests
- 176 tests passing (up from 162), 86.43% branch coverage
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads