Closed rmiroslavov closed 3 years ago
Neverming, It works without prefixing "https://" or "api". Closing this.
Correct. As documented:
Although maybe we need to consider just taking in whatever the input is and removing the part that we don't want, in order to be more user friendly....
Expected behavior:
Set-GitHubConfiguration -ApiHostName "https://api.subdomain.domain.com"
is getting validated and worksCurrent behavior
Set-GitHubConfiguration -ApiHostName "https://api.subdomain.domain.com"
is getting validated and works throwsWhile
Set-GitHubConfiguration -ApiHostName "ttps://api.subdomain.domain.com"
is getting validatedtesting on https://regex101.com/ confirm regex validation not working as intended
No match
Returns match
Possible solution:
on the regex validation, escape first "h" character
^(?!\https:)(?!api\.)(?!www\.).*
Reproduced using: