Compare commits
No commits in common. "86d1c34e3979877f9b49e51579236aeda16c2b6e" and "431d6561a8392d34b1ac56ade1b758f8b4f1893c" have entirely different histories.
86d1c34e39
...
431d6561a8
@ -5,16 +5,7 @@ class ConfigUtils {
|
||||
}
|
||||
|
||||
formatSubcategoryName(subcategoryName) {
|
||||
var name = subcategoryName.replace(/_/g, ' ').replace(/\b\w/g, function(l) { return l.toUpperCase(); });
|
||||
// Naive title-casing mangles acronyms/brand names ("Ssh", "Dns",
|
||||
// "Libreportal"). Fix known ones per whole word so sections read
|
||||
// professionally ("SSH", "DNS", "LibrePortal").
|
||||
var ACRONYMS = {
|
||||
Ssh: 'SSH', Dns: 'DNS', Vpn: 'VPN', Api: 'API', Ip: 'IP', Ui: 'UI',
|
||||
Url: 'URL', Http: 'HTTP', Https: 'HTTPS', Tls: 'TLS', Ssl: 'SSL',
|
||||
Webui: 'WebUI', Libreportal: 'LibrePortal'
|
||||
};
|
||||
return name.split(' ').map(function(w) { return ACRONYMS[w] || w; }).join(' ');
|
||||
return subcategoryName.replace(/_/g, ' ').replace(/\b\w/g, function(l) { return l.toUpperCase(); });
|
||||
}
|
||||
|
||||
cleanDescription(description) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user