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

fix: use the correct allowed char ranges for fabric mod ids #1104

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

derklaro
Copy link
Member

@derklaro derklaro commented Jan 30, 2023

Motivation

The current fabric platform generator is generating invalid mod ids due to a too permissive mod id description in the fabric wiki.

Modification

Ensure that the mod id is matching the actual mod id pattern [a-z][a-z0-9-_]{1,63} of fabric (taken from the MetadataVerifier)

Result

Mod ids for fabric are now generated correctly and no longer cause a startup crash.

Other context

Fixes #1102

@derklaro derklaro added v: 4.X This pull should be included in the 4.0 release t: fix A pull request introducing a fix for a bug. in: ext An issue/pull request releated to the ext module code labels Jan 30, 2023
@derklaro derklaro added this to the 4.0.0-RC8 milestone Jan 30, 2023
@derklaro derklaro requested a review from 0utplay January 30, 2023 10:02
@derklaro derklaro self-assigned this Jan 30, 2023
@0utplay 0utplay merged commit d937454 into nightly Jan 30, 2023
@0utplay 0utplay deleted the invalid-fabric-mod-id branch January 30, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: ext An issue/pull request releated to the ext module code t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fabric Bridge mod causes server crash
2 participants