Skip to content

Conversation

@Eradev
Copy link
Contributor

@Eradev Eradev commented Oct 4, 2025

Working on #5916

Comment on lines 101 to 102
public static String complexTargetTypesToString(String types, boolean pluralize) {
String[] parts = types.split(";");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would do the split outside, because then we could use it for Valid that uses , as Split

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made it so you can pass the split regex as parameter.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parameter types is only used to be split into String[] parts
wouldn't it be better to pass String[] parts directly as parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I'll change it next time.

@Hanmac
Copy link
Contributor

Hanmac commented Nov 6, 2025

@Eradev i did something for this in: #9063

Lang.getInstance.buildValidDesc could be extended to support stuff like "you control" or something

@github-actions
Copy link

github-actions bot commented Jan 2, 2026

This PR has not been updated in a while nad has been marked on stale. Stale PRs will be auto closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants