Closed REOScotte closed 12 months ago
Have you considered using [string]::IsNullOrWhitespace
? This should capture null
, empty strings, and spaces.
Not sure where it would makes sense. Do you mean inside the .Where clause? Need the Trim() to get rid of errant spaces around a name regardless.
Background
After switching to using [StringSplitOptions]::RemoveEmptyEntries, I realized it wasn't trimming lines that were blank AFTER Trim() executed. So I switched back to using .Where({$_})
Using RemoveEmptyEntries, if someone entered the below list, Row 1 would be included, row 2 would be excluded because its a blank line, but row 3 would also be included since it contains a space. Row 4 as normal.
Row1
Row2
However, with .Where({$_}), only Row 1 and 2 would be included.
Results
Before
After
Pre-requisites
Id
should be a GUID that is not00000000-0000-0000-0000-000000000000
Id
property (updating theId
will break the Library sync functionality in Octopus).Version
should be incremented, otherwise the integration with Octopus won't update the step template correctly$
LastModifiedBy
field must be present, and (optionally) updated with the correct authorCategory
has been created:{categoryname}.png
must be present under thestep-templates/logos
folderswitch
in thehumanize
function ingulpfile.babel.js
must have acase
statement corresponding to it