EU Parliament Monitor — API Documentation - v0.8.49
    Preparing search index...

    Function sanitizeRunSuffix

    • Turn an arbitrary run-id string into a short, filename-safe suffix. Keeps ASCII word/dash characters only, trims leading/trailing dashes, and caps the length at RUN_SUFFIX_MAX_LENGTH to avoid filesystem path-length surprises. Falls back to DEFAULT_RUN_SUFFIX when no characters survive the sanitiser.

      Parameters

      • runId: string

        Raw run identifier from the manifest (or directory name)

      Returns string

      Sanitised suffix usable in a filename