Skip to content

Commit 9ccf2c2

Browse files
authored
Merge pull request #2021 from microsoftgraph/bugfixes/DateParameter
Fix date assignment in Reports module.
2 parents 8fdeceb + 5eab286 commit 9ccf2c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/readme.graph.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,10 @@ directive:
558558
// Serialize streams (not supported by AutoREST).
559559
let streamContentRegex = /(request\.Content\s*=)\s*null\s*\/\*\s*serializeToNode\s*doesn't.*.\s*(request\.Content\.Headers\.ContentType.*Parse)\("application\/json"\);/gmi
560560
$ = $.replace(streamContentRegex, '$1 new global::System.Net.Http.StreamContent(body);\n $2("application/octet-stream");');
561+
562+
// Fix double = in date parameter. Temp fix for https://github.com/Azure/autorest.powershell/issues/1025.
563+
let dateAssignmentRegex = /(date="\n.*)(\+.*"=")(.*\+.*date)/gmi
564+
$ = $.replace(dateAssignmentRegex, '$1 $3');
561565
return $;
562566
}
563567

0 commit comments

Comments
 (0)