Skip to content

Commit 53d87a4

Browse files
committed
Temporarily disable paging - WIP.
1 parent 427199d commit 53d87a4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/readme.graph.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,4 +378,18 @@ directive:
378378
}
379379
return $;
380380
}
381+
# Temporarily disable paging.
382+
- from: source-file-csharp
383+
where: $
384+
transform: >
385+
if (!$documentPath.match(/generated%2Fcmdlets%2FGet\w*_List.cs/gm))
386+
{
387+
return $;
388+
} else {
389+
let odataNextLinkRegex = /(^\s*)(if\s*\(\s*result.OdataNextLink\s*!=\s*null\s*\))/gmi
390+
if($.match(odataNextLinkRegex)) {
391+
$ = $.replace(odataNextLinkRegex, '$1result.OdataNextLink = null;\n$1if (result.OdataNextLink != null)$1');
392+
}
393+
return $;
394+
}
381395
```

0 commit comments

Comments
 (0)