Replies: 2 comments
-
|
Read the title of this, thought, maybe a switch makes sense. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Created this issue to track and follow up on #1258 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
When working on excel worksheets, I found more than once that I didn't expect the table header or even the cell value has trailing or leading spaces. "Team " and "Team" look no difference, but it makes code difficult to maintain.
I am wondering if the import-excel can include a switch to trim table headers or even cell before returning the psobject arraylist. I used my function to trim cells, but since the property name can't be changed, i don't know any easy to handle headers.
Any feedback is much appreciated. Thanks.
function trimTable {
[CmdletBinding()]
param($table)
}
Beta Was this translation helpful? Give feedback.
All reactions