Skip to content

Commit fd32436

Browse files
Invoke-ADORestAPI: Fixing #111. No longer treating brackets in REST variables.
1 parent 16c5c13 commit fd32436

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Invoke-ADORestAPI.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,21 +164,21 @@ Specifies the method used for the web request. The acceptable values for this pa
164164
(?<Start>[/\.]) # Match the <Start>ing slash|dot ...
165165
(?<IsOptional>\?)? # ... an optional ? (to indicate optional) ...
166166
(?:
167-
\{(?<Variable>\w+)\}| # ... A <Variable> name in {} OR
167+
\{(?<Variable>\w+)\} # ... A <Variable> name in {} OR
168168
)
169169
|
170-
(?<IsOptional> # If it's optional it can also be
170+
(?<IsOptional> # If it's optional it can also be
171171
[{\[](?<Start>/) # a bracket or brace, followed by a slash
172172
)
173173
(?<Variable>\w+)[}\]] # then a <Variable> name followed by } or ]
174174
175175
| # OR it can be in a query parameter:
176176
(?<Start>[\?\&]) # Match The <Start>ing ? or & ...
177-
(?<Query>[\$\w\-]+) # ... the <Query> parameter name ...
177+
(?<Query>[\$\w\-]+) # ... the <Query> parameter name ...
178178
= # ... an equals ...
179179
(?<IsOptional>\?)? # ... an optional ? (to indicate optional) ...
180180
(?:
181-
\{(?<Variable>\w+)\}| # ... A <Variable> name in {} OR
181+
\{(?<Variable>\w+)\} # ... A <Variable> name in {} OR
182182
)
183183
)
184184
'@, 'IgnoreCase,IgnorePatternWhitespace')

0 commit comments

Comments
 (0)