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: handle spaces in deployType and platform #534

Merged
merged 3 commits into from
May 28, 2024
Merged

fix: handle spaces in deployType and platform #534

merged 3 commits into from
May 28, 2024

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented May 28, 2024

According to the docs https://titaniumsdk.com/guide/Titanium_SDK/Titanium_SDK_Guide/Appendices/tiapp.xml_and_timodule.xml_Reference.html#modules you can use a deploy-type with comma separated values:

<module deploy-type="test, production">ti.module</module>

BUT you are not allowed to use spaces in between. This PR will trim() the strings so it will ignore the spaces when splitting the value.
Currently it will compare production against _production (_ = space) when you use the example above.

Workaround

<module deploy-type="test,production">ti.module</module>

no space between the text and comma.

Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

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

Looks good!

@cb1kenobi cb1kenobi merged commit e0adc29 into master May 28, 2024
13 checks passed
@cb1kenobi cb1kenobi deleted the splitTrim branch May 28, 2024 17:52
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