Skip to content

image path regex not sufficient #4

@direwolf420

Description

@direwolf420

Current regex '[/\\\\]\d+[/\\\\]'

image_regex = re.compile('[/\\\\]\d+[/\\\\]')

does not detect an image stored in a folder like that (created via a plugin that does date based folders)
Screenshot_5

On google I found '^[A-Z]:(\\[^\v\\]+)+\\?$|^/?([^\v/]+/)+' which works for windows and linux.

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