Trevixal API
    Preparing search index...

    Function suggestFileName

    • A file-system-safe name from a title: Quarterly report.md.

      Filtering by code point rather than with a regular expression keeps the control range out without putting control characters in the source. Trailing dots and spaces go too: Windows silently drops them, so Report. would otherwise become Report..md here and Report.md once saved.

      Parameters

      • title: string
      • extension: string

      Returns string