Skip to content

Automatic GIT patch detection fails if filename contains non-word-constituent characters #32

@mspncp

Description

@mspncp

Hi,

The attached example.zip contains an example where the patch type detection fails to detect a git patch because the filename contains a dash. See README.txt in the example directory for more details.

Note that I added three diagnostic lines of code to the path.py module in the example directory.

I suggest that the regular expression r'diff --git a/[\w/.]+ b/[\w/.]+' should be extended accordingly.

example.zip

P.S: Thanks for sharing your code!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions