Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting matcher failed when version number includes spaces #8

Open
wagyourtail opened this issue Mar 16, 2023 · 0 comments
Open

getting matcher failed when version number includes spaces #8

wagyourtail opened this issue Mar 16, 2023 · 0 comments

Comments

@wagyourtail
Copy link

wagyourtail commented Mar 16, 2023

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant