Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MAINT) Fix metadata summary entry definition #123

Merged
merged 1 commit into from
Feb 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/internal/functions/Update-PuppetModuleMetadata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function Update-PuppetModuleMetadata {
$PuppetMetadata.author = $PuppetModuleAuthor
}
$PuppetMetadata.version = Get-PuppetModuleVersion -Version $PowerShellMetadata.ModuleVersion
$summary = $PowerShellMetadata.Description -Replace "(`r`n|`n)", '`n'
$summary = $PowerShellMetadata.Description -Replace '"', '\"'
$summary = ($PowerShellMetadata.Description -split "(`r`n|`n)")[0]
$summary = $summary -Replace '"', '\"'
# summary needs to be 144 chars or less (see https://github.com/voxpupuli/metadata-json-lint/blob/5ab67f9404ee65da0efd84a597b2ee86152d2659/lib/metadata-json-lint/schema.rb#L99 )
if ($summary.length -gt 144) {
$summary = $summary.substring(0, 144 - 3) + "..."
Expand Down