Skip to content

Commit

Permalink
Fix wrong display of package names on website
Browse files Browse the repository at this point in the history
  • Loading branch information
salmenf committed Nov 13, 2024
1 parent 19acc6e commit a046a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @webwriter/website/src/pages/widgets/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function calculateOrder(widget: any) {
function prettifyWidgetName(name: string) {
let result = name.replace(/^@.+\//g, "")
result = result[0].toUpperCase() + result.slice(1)
result = result.split("-").map(s => s[0].toUpperCase() + s.slice(1)).join(" ")
return result
}
Expand Down

0 comments on commit a046a38

Please sign in to comment.