Skip to content

Commit

Permalink
feat: 4bitcss json files and credits ( Fixes #79, Fixes #80 )
Browse files Browse the repository at this point in the history
Adjusting json value casing
  • Loading branch information
James Brundage committed Oct 18, 2024
1 parent 97573b3 commit bf9458f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build/4bitcss.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ filter GetCredits {
if ($line -notmatch $markdownLinkPattern) {
continue
}
[Ordered]@{Credit=$Matches.text; Link=$Matches.link}
[Ordered]@{credit=$Matches.text; link=$Matches.link}
}
}

Expand Down Expand Up @@ -63,7 +63,7 @@ foreach ($jsonFile in $jsonFiles) {
$jsonObject.Name | Convert-4BitName

$jsonObject |
Add-Member NoteProperty Credits -Force -PassThru -Value ($colorSchemeName | GetCredits)
Add-Member NoteProperty credits -Force -PassThru -Value @($colorSchemeName | GetCredits)

if (-not $colorSchemeFileName) { continue }
$distinctColors = @($jsonObject.psobject.Properties.value) -match '^#[0-9a-fA-F]{6}' | Select-Object -Unique
Expand Down

0 comments on commit bf9458f

Please sign in to comment.