Skip to content

Unable to use backslash in upload spec regular expression #102

@rondagostino

Description

@rondagostino

The pull request at #100 broke the regular expression matching feature of the plugin. Specifically, it is now impossible to include a backslash character in the regular expression because they are all replaced with forward-slashes. For example, when I uploaded with v2.7.2 of the plugin (which did not have this change) with this upload spec:

"pattern": "pom\\.xml"

I received this output as expected:

For pattern: pom\.xml 1 artifacts were found

But in v2.8.0 of the plugin (which has that change) it fails to match and find the file; I get this message instead (note the backslash has been converted to a forward slash):

For pattern: pom/.xml 0 artifacts were found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions