Hello,
first of all, thank you for this, this module helps A LOT - made more progress in the last two weeks learning and understanding the build process, runners, etc. than in the last two years!
I want to utilize Set-ShieldsIoBadge and I have a little table that contains the badges, looks like this:
Component Status
|
|
| General |
 |
| Release |
 |
| Build |
 |
| Functions |
 |
| Pester |
 |
after running updates against them, it looks like this:
Component Status
|
|
| General |
 |
| Release |
 |
| Build |
[ |
| Functions |
 |
| Pester |
 |
Looking into Set-ShieldsIoBadge, I find that the match string is finding too much:
$ReadmeContent = (Get-Content $Path)
$ReadmeContent = $ReadmeContent -replace "!\[$($Subject)\].+\)", ""
$ReadmeContent | Set-Content -Path $Path
# running this manually to see what matches
❯ $RM = Get-Content Readme.md
❯ $Subject = "Public"
❯ $RM -match "!\[$($Subject)\].+\)"
| Functions |      
It looks like it replaces the whole line until the (last?) ')' rather than the next one found.
Playing around with Regex and Lazy operators, but cannot find a suitable match that would reduce the match to the actual.
Is there a way to do this please?
Thank you,
David
Hello,
first of all, thank you for this, this module helps A LOT - made more progress in the last two weeks learning and understanding the build process, runners, etc. than in the last two years!
I want to utilize
Set-ShieldsIoBadgeand I have a little table that contains the badges, looks like this:Component Status
after running updates against them, it looks like this:
Component Status
Looking into
Set-ShieldsIoBadge, I find that the match string is finding too much:It looks like it replaces the whole line until the (last?) ')' rather than the next one found.
Playing around with Regex and Lazy operators, but cannot find a suitable match that would reduce the match to the actual.
Is there a way to do this please?
Thank you,
David