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)
|
.filter((label) => label?.includes("-verified") == false)
|
||||||
.map((label) =>
|
.map((label) => capitalizeFirstLetter(label))
|
||||||
capitalizeFirstLetter(label.replaceAll("_", " ")),
|
|
||||||
)
|
|
||||||
.sort()
|
.sort()
|
||||||
.join(", ")
|
.join(", ")
|
||||||
.replaceAll("-verified", "")}
|
.replaceAll("-verified", "")}
|
||||||
|
|||||||
@ -4,6 +4,7 @@ export const capitalizeFirstLetter = (text: string): string => {
|
|||||||
|
|
||||||
export const capitalizeAll = (text: string): string => {
|
export const capitalizeAll = (text: string): string => {
|
||||||
return text
|
return text
|
||||||
|
.replaceAll("_", " ")
|
||||||
.split(" ")
|
.split(" ")
|
||||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||||
.join(" ");
|
.join(" ");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user