René's URL Explorer Experiment


Title: Set-ShieldsIoBadge replaces whole line (until last ')') · Issue #131 · PowerShellOrg/BuildHelpers · GitHub

Open Graph Title: Set-ShieldsIoBadge replaces whole line (until last ')') · Issue #131 · PowerShellOrg/BuildHelpers

X Title: Set-ShieldsIoBadge replaces whole line (until last ')') · Issue #131 · PowerShellOrg/BuildHelpers

Description: 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 ...

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/PowerShellOrg/BuildHelpers/issues/131

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Set-ShieldsIoBadge replaces whole line (until last ')')","articleBody":"Hello,\r\n\r\nfirst 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!\r\n\r\nI want to utilize `Set-ShieldsIoBadge` and I have a little table that contains the badges, looks like this:\r\n\r\n### Component Status\r\n\r\n|           |                                                                                                                                                                                                                                                                                                                                                                    |\r\n| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\r\n| General     |  [![Documentation - GitHub](https://img.shields.io/badge/Documentation-TeamsFunctions-blue.svg)](https://github.com/DEberhardt/TeamsFunctions/tree/master/docs) [![PowerShell Gallery - TeamsFunctions](https://img.shields.io/badge/PowerShell%20Gallery-TeamsFunctions-blue.svg)](https://www.powershellgallery.com/packages/TeamsFunctions/) |\r\n| Release     | [![Release](https://img.shields.io/github/v/release/DEberhardt/TeamsFunctions?include_prereleases&sort=semver)](.\\readme.md) [![Downloads](https://img.shields.io/powershellgallery/dt/TeamsFunctions)](.\\readme.md) |\r\n| Build     |  [![Build](https://img.shields.io/badge/Build-unknown-orange.svg)](.\\readme.md) [![BuildWorkflow](https://img.shields.io/github/workflow/status/DEberhardt/TeamsFunctions/Integration)](.\\readme.md)  [![Issues](https://img.shields.io/github/issues/DEberhardt/TeamsFunctions)](https://github.com/DEberhardt/TeamsFunctions/issues) |\r\n| Functions | ![Public](https://img.shields.io/badge/Public-0-blue.svg) ![Private](https://img.shields.io/badge/Private-0-grey.svg) ![Live](https://img.shields.io/badge/Live-0-blue.svg) ![RC](https://img.shields.io/badge/RC-0-green.svg) ![BETA](https://img.shields.io/badge/BETA-3-yellow.svg) ![ALPHA](https://img.shields.io/badge/ALPHA-4-orange.svg)                                                                                                                                                                           |\r\n| Pester    | ![Result](https://img.shields.io/badge/Result-pass-green.svg) ![Passed](https://img.shields.io/badge/Passed-0-blue.svg) ![Failed](https://img.shields.io/badge/Failed-0-red.svg) ![Skipped](https://img.shields.io/badge/Skipped-33-yellow.svg) ![NotRun](https://img.shields.io/badge/NotRun-44-grey.svg) ![CodeCoverage](https://img.shields.io/badge/CodeCoverage-0%25-red.svg)                                                                                                                              |\r\n\r\nafter running updates against them, it looks like this:\r\n\r\n### Component Status\r\n|           |                                                                                                                                                                                                                                                                                                                                                                    |\r\n| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\r\n| General     |  [![Documentation - GitHub](https://img.shields.io/badge/Documentation-TeamsFunctions-blue.svg)](https://github.com/DEberhardt/TeamsFunctions/tree/master/docs) [![PowerShell Gallery - TeamsFunctions](https://img.shields.io/badge/PowerShell%20Gallery-TeamsFunctions-blue.svg)](https://www.powershellgallery.com/packages/TeamsFunctions/) |\r\n| Release     | [![Release](https://img.shields.io/github/v/release/DEberhardt/TeamsFunctions?include_prereleases&sort=semver)](.\\readme.md) [![Downloads](https://img.shields.io/powershellgallery/dt/TeamsFunctions)](.\\readme.md) |\r\n| Build     |  [![Build](https://img.shields.io/badge/Build-0-red.svg) |\r\n| Functions | ![Public](https://img.shields.io/badge/Public-117-Blue.svg)                                                                                                                                                                           |\r\n| Pester    | ![Result](https://img.shields.io/badge/Result-Passed-lightgrey.svg)                                                                                                                              |\r\n\r\n\r\nLooking into `Set-ShieldsIoBadge`, I find that the match string is finding too much:\r\n\r\n```powershell\r\n$ReadmeContent = (Get-Content $Path)\r\n$ReadmeContent = $ReadmeContent -replace \"!\\[$($Subject)\\].+\\)\", \"![$($Subject)](https://img.shields.io/badge/$Subject-$Status$Percent-$Color.svg)\"\r\n$ReadmeContent | Set-Content -Path $Path\r\n\r\n# running this manually to see what matches\r\n❯ $RM =  Get-Content Readme.md\r\n❯ $Subject = \"Public\"\r\n❯ $RM -match \"!\\[$($Subject)\\].+\\)\"\r\n| Functions | ![Public](https://img.shields.io/badge/Public-0-blue.svg) ![Private](https://img.shields.io/badge/Private-0-grey.svg) ![Live](https://img.shields.io/badge/Live-0-blue.svg) ![RC](https://img.shields.io/badge/RC-0-green.svg) ![BETA](https://img.shields.io/badge/BETA-3-yellow.svg) ![ALPHA](https://img.shields.io/badge/ALPHA-4-orange.svg)               \r\n```\r\n\r\nIt looks like it replaces the whole line until the (last?) ')' rather than the next one found.\r\nPlaying around with Regex and Lazy operators, but cannot find a suitable match that would reduce the match to the actual.\r\n\r\nIs there a way to do this please?\r\n\r\nThank you,\r\nDavid","author":{"url":"https://github.com/DEberhardt","@type":"Person","name":"DEberhardt"},"datePublished":"2022-07-02T14:25:36Z","url":"https://github.com/PowerShellOrg/BuildHelpers/issues/131"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0d85f620-0663-13e3-8c22-a80dae84057c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE8F4:2A2201:5D699:7BBDB:6AFD3833
html-safe-noncec8c5838965f7ca6cadb5f5758c4e048411ffceb6a5e29491fab857b805778c8a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEY0OjJBMjIwMTo1RDY5OTo3QkJEQjo2QUZEMzgzMyIsInZpc2l0b3JfaWQiOiI4MDc1NTM2MTQwMzkzNTkyODgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5dae7412263c4b52eed798870a6106672843cda3acf5fa909c903ac8f89e7ac4
hovercard-subject-tagissue:1292067359
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShellOrg/BuildHelpers/131/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e51ce39d82f9c480c5c689784f50a048d80245aaac02137842cbee434da28b0a/PowerShellOrg/BuildHelpers/issues/131
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e51ce39d82f9c480c5c689784f50a048d80245aaac02137842cbee434da28b0a/PowerShellOrg/BuildHelpers/issues/131
og:image:altHello, 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...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDEberhardt
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
turbo-cache-controlno-preview
go-importgithub.com/PowerShellOrg/BuildHelpers git https://github.com/PowerShellOrg/BuildHelpers.git
octolytics-dimension-user_id4895314
octolytics-dimension-user_loginPowerShellOrg
octolytics-dimension-repository_id59748913
octolytics-dimension-repository_nwoPowerShellOrg/BuildHelpers
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id59748913
octolytics-dimension-repository_network_root_nwoPowerShellOrg/BuildHelpers
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShellOrg/BuildHelpers/issues/131#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShellOrg%2FBuildHelpers%2Fissues%2F131
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShellOrg%2FBuildHelpers%2Fissues%2F131
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShellOrg%2FBuildHelpers
Reloadhttps://github.com/PowerShellOrg/BuildHelpers/issues/131
Reloadhttps://github.com/PowerShellOrg/BuildHelpers/issues/131
Reloadhttps://github.com/PowerShellOrg/BuildHelpers/issues/131
PowerShellOrghttps://github.com/PowerShellOrg
BuildHelpershttps://github.com/PowerShellOrg/BuildHelpers
Codehttps://github.com/PowerShellOrg/BuildHelpers
Issues37 (37)https://github.com/PowerShellOrg/BuildHelpers/issues
Pull requests11 (11)https://github.com/PowerShellOrg/BuildHelpers/pulls
Actionshttps://github.com/PowerShellOrg/BuildHelpers/actions
Projectshttps://github.com/PowerShellOrg/BuildHelpers/projects
Security and qualityhttps://github.com/PowerShellOrg/BuildHelpers/security
Insightshttps://github.com/PowerShellOrg/BuildHelpers/insights
https://github.com/PowerShellOrg/BuildHelpers
New issuehttps://github.com/login?return_to=https://github.com/PowerShellOrg/BuildHelpers/issues/131
New issuehttps://github.com/login?return_to=https://github.com/PowerShellOrg/BuildHelpers/issues/131
Set-ShieldsIoBadge replaces whole line (until last ')')https://github.com/PowerShellOrg/BuildHelpers/issues/131#top
https://github.com/DEberhardt
DEberhardthttps://github.com/DEberhardt
on Jul 2, 2022https://github.com/PowerShellOrg/BuildHelpers/issues/131#issue-1292067359
https://github.com/DEberhardt/TeamsFunctions/tree/master/docs
https://www.powershellgallery.com/packages/TeamsFunctions/
https://github.com/PowerShellOrg/BuildHelpers/issues/.%5Creadme.md
https://github.com/PowerShellOrg/BuildHelpers/issues/.%5Creadme.md
https://github.com/PowerShellOrg/BuildHelpers/issues/.%5Creadme.md
https://github.com/PowerShellOrg/BuildHelpers/issues/.%5Creadme.md
https://github.com/DEberhardt/TeamsFunctions/issues
https://camo.githubusercontent.com/1b527fb57a28e307b0ca9ddfd21d6622d35cba79ff7ab1a1dd0b4b3959d0f277/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5075626c69632d302d626c75652e737667
https://camo.githubusercontent.com/104e019234a0e86a5d8afe8b2d736d33e06ac29b6b8901bc3cb6891047ad10c5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507269766174652d302d677265792e737667
https://camo.githubusercontent.com/a0da4df9b4734191f57ff8bcb3e39c94a66291e1cfe1da3902d0c732ff09986d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6976652d302d626c75652e737667
https://camo.githubusercontent.com/7229b93bb25680126f6cd2f134bef71b5f434340f17faa67e675acaa35c8ad7c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52432d302d677265656e2e737667
https://camo.githubusercontent.com/a07863a7989e553f177e0ce8c0112d57da76af023430ca704411e1e2c6794768/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f424554412d332d79656c6c6f772e737667
https://camo.githubusercontent.com/9471cc7cb03709b63cd95c9341f3f943fcb0af8d5f5f906c188816527b87e525/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f414c5048412d342d6f72616e67652e737667
https://camo.githubusercontent.com/971340dfb96d97f508c2ef0c507e2c84f0e58696ba044121ce09be05a49a932d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f526573756c742d706173732d677265656e2e737667
https://camo.githubusercontent.com/0de09123a6a17762e4f91a8ef2b143388ccb5678be1f60583257e13f16800173/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061737365642d302d626c75652e737667
https://camo.githubusercontent.com/795591b7146d18b4a263238701974b56e5cfcc0f2e7048b2cc52de1a69056ba5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4661696c65642d302d7265642e737667
https://camo.githubusercontent.com/c99f8e0f3832754bd33cc747a3e0cf1e5c9efccf0392dd2837223959730092bb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f536b69707065642d33332d79656c6c6f772e737667
https://camo.githubusercontent.com/1fa33cf5d20aec00505a1436fd6733b25de23b61050a7702b23934891e363c6c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4e6f7452756e2d34342d677265792e737667
https://camo.githubusercontent.com/95afe4641c6c3668cea802d056252481774ac5e6637ddc252f9362e3e7f4d267/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6465436f7665726167652d302532352d7265642e737667
https://github.com/DEberhardt/TeamsFunctions/tree/master/docs
https://www.powershellgallery.com/packages/TeamsFunctions/
https://github.com/PowerShellOrg/BuildHelpers/issues/.%5Creadme.md
https://github.com/PowerShellOrg/BuildHelpers/issues/.%5Creadme.md
https://camo.githubusercontent.com/4d3821d3d1432f218f2f928d51d8e6bc37df51c7eeddcd3afcc5a8f7fe627a4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c642d302d7265642e737667
https://camo.githubusercontent.com/c6360b71ae1bdeeb41bc24027e518ea9b4cb3dd94ea43a4dfe3d33a1314d8dbd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5075626c69632d3131372d426c75652e737667
https://camo.githubusercontent.com/f6c0b2d0e399044f48e624c8afb058284bb9f9d443a5dcbe1a451f8237479d5d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f526573756c742d5061737365642d6c69676874677265792e737667
https://github.com/DEberhardt
DEberhardthttps://github.com/DEberhardt
on Jul 2, 2022https://github.com/PowerShellOrg/BuildHelpers/issues/131#issuecomment-1172918977
DEberhardthttps://github.com/DEberhardt
on Jul 2, 2022https://github.com/PowerShellOrg/BuildHelpers/issues/131#event-6922344424
Fixes PowerShellOrg#131 - no more greedy replacehttps://github.com/DEberhardt/BuildHelpers/commit/91bd398703b64a5899d014d3592998fa90b3d50e
PowerShellOrg#131https://github.com/PowerShellOrg/BuildHelpers/issues/131
https://docs.github.com/articles/closing-issues-via-commit-messages
91bd398https://github.com/DEberhardt/BuildHelpers/commit/91bd398703b64a5899d014d3592998fa90b3d50e
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShellOrg/BuildHelpers/issues/131
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShellOrg/BuildHelpers/issues/131
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.