mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-01 05:31:38 +03:00
capitalize category name
This commit is contained in:
parent
dcbee729fb
commit
c9736ec0fa
3 changed files with 7 additions and 2 deletions
client/src/helpers
|
@ -81,3 +81,5 @@ export const getPercent = (amount, number) => {
|
|||
}
|
||||
return 0;
|
||||
};
|
||||
|
||||
export const captitalizeWords = text => text.split(/[ -_]/g).map(str => str.charAt(0).toUpperCase() + str.substr(1)).join(' ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue