You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, when handling parameters with url values, which have both
`:` and `/`, Get-PackageParameters would split on those parameters.
This made it near impossible to pass through urls without finessing the
values.
Switch to using a regular expression that can handle the complexity of
parameters:
* Split on start of string and `/` or a space and then `/`.
* The splitter for each item name and value is either `:` or `=`.
* A flag should be set true if present (an item without a value).
* An item value can contain spaces colons and equals signs, pretty much
anything except for a space followed by "/".
What You Are Seeing?
Calling
Get-PackageParameters
with a url splits the URL.--params"'/url:https://somewhere.com'"
results in@(url=https:, somewhere.com=True)
What is Expected?
--params"'/url:https://somewhere.com'"
should result in@(url=https://somewhere.com)
How Did You Get This To Happen? (Steps to Reproduce)
choco install id --params"'/item:value /url:https://somewhere.com /bob:yes sir'"
The text was updated successfully, but these errors were encountered: