Skip to content

Accepts solutions that don't match the requirements, doesn't support multiple paths #49

@42degrees

Description

@42degrees

Thanks for a cool site!

This is about lesson 5, Filter by paths. The requirements specifically mention .jpg files, but it accepts matching all files.

For example, it accepts this:

  • 'photos/*'

and this:

  • 'photos/.'

Even though these are not specific to jpg files (and will certainly get the user in trouble when "optimizing images".

Also, it gets confused if you include multiple paths, for example this fails, but should probably be accepted:

  • 'photos/*.jpg'
  • 'photos/*.JPG'

Interestingly, this alternate solution for handling of files with multiple cases works fine as long as there is only one path:

  • 'photos/*.[jJ][pP][gG]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions