Function isValidFilename

  • Checks whether or not a given filename matches the expected Sanity asset filename pattern

    Parameters

    • filename: string

      Filename to check for validity

    Returns boolean

    Whether or not the specified filename is valid