Merge claude/1
This commit is contained in:
commit
86d1c34e39
@ -5,7 +5,16 @@ class ConfigUtils {
|
||||
}
|
||||
|
||||
formatSubcategoryName(subcategoryName) {
|
||||
return subcategoryName.replace(/_/g, ' ').replace(/\b\w/g, function(l) { return l.toUpperCase(); });
|
||||
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(' ');
|
||||
}
|
||||
|
||||
cleanDescription(description) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user