Skip to content

Invalid windows path validation #325

@pavel-jares-bcm

Description

@pavel-jares-bcm

const badWinChars = /[*|"<>?:]/

Actually, this condition is not correct. It could validate that the whole path and disk location contains a colon, see C:\path.

The Regex should be like ^([A-Z]:)?(.*)$ and group 2 could be tested for invalid characters.

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