mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 08:35:21 +03:00
Apply to all capitalization
This commit is contained in:
parent
6ccde086e6
commit
b1bec351b1
@ -276,9 +276,7 @@ export default function LivePlayer({
|
||||
]),
|
||||
]
|
||||
.filter((label) => label?.includes("-verified") == false)
|
||||
.map((label) =>
|
||||
capitalizeFirstLetter(label.replaceAll("_", " ")),
|
||||
)
|
||||
.map((label) => capitalizeFirstLetter(label))
|
||||
.sort()
|
||||
.join(", ")
|
||||
.replaceAll("-verified", "")}
|
||||
|
||||
@ -4,6 +4,7 @@ export const capitalizeFirstLetter = (text: string): string => {
|
||||
|
||||
export const capitalizeAll = (text: string): string => {
|
||||
return text
|
||||
.replaceAll("_", " ")
|
||||
.split(" ")
|
||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(" ");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user