@maschinenlesbar.org/regionalatlas-cli
    Preparing search index...

    Function normaliseYearFilter

    • The canonical form of a year filter: the year as the 4-digit string the catalogue keys use. Accepts an integer (2020) or an unpadded 4-digit string ("2020"); anything else (" 2020", "", 1.5, 20, "02020") throws RegionalatlasValidationError (Invalid year: Expected a 4-digit year (e.g. 2020).) instead of matching nothing or being skipped.

      Parameters

      • year: string | number

      Returns string