Skip to content

getting matcher failed when version number includes spaces #8

@wagyourtail

Description

@wagyourtail

I see why...

private static final Pattern URL_PATTERN = Pattern.compile(
"^(?<group>\\S+(?:/\\S+)*)/(?<name>\\S+)/(?<version>\\S+)/" +
"\\2-\\3(?:-(?<classifier>[^.\\s]+))?\\.(?<extension>\\S+)$");

well, you see... I'm using this in a gradle plugin I'm working on, and minecraft 1.14 pre releases id's are weird... among other things
in any case, version numbers (and the others) should be able to contain spaces and be valid...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions