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

6.x - string.expandWildcards implementation #1889

Open
wants to merge 1 commit into
base: 6.x
Choose a base branch
from

Conversation

flakey5
Copy link
Contributor

@flakey5 flakey5 commented May 22, 2022

What does this PR do?

Provides an implementation for string.expandWildcards.

How does this PR change Premake's behavior?

The function will no longer return placeholders and will act as it should. Uses string.patternFromWildcards internally.

Anything else we should know?

Since string.patternFromWildcards is implemented in C I was unsure if the todo calling for this function to be moved to C is still applicable. If it is, I'd be able to move it either in another commit in this pr or by making a new pr. Also, I believe this implementation is applicable to path.expandWildcards, however, it breaks a few tests in the field module so it requires a bit more looking into.

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

@nickclark2016
Copy link
Member

@starkos or @samsinsane this look right to you? I'm not as well versed in the core premake libraries as yall. It LGTM, but I'd like one of yall to look.

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

Successfully merging this pull request may close these issues.

2 participants