Skip to content

v0.1.4: Reject attachment document_url as unsupported

Choose a tag to compare

@cyanheads cyanheads released this 10 Jul 02:30
v0.1.4
4a27a94

Reject attachment document_url as unsupported

ris_get_document's document_url mode no longer silently swaps a content-attachment URL for the main document.

Fixed:

  • ris_get_document rejects a content-attachment or non-rendition document_url — RegV Materialien_…/Anlagen_… memoranda and annexes, or any path whose filename stem doesn't match the document number — via the existing unsupported_url error, instead of silently returning the main document. Main-document rendition and folder URLs are unaffected. (#6)

286 tests pass; bun run devcheck clean.

CHANGELOG v0.1.4