fix: resolve copilot suggestions

This commit is contained in:
divocat
2025-10-07 17:23:26 +03:00
parent ddad137fc1
commit 5d0f8ce5bf
3 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ export function validatePath(value: string): ValidationResult {
if (pathRegex.test(value)) { if (pathRegex.test(value)) {
return { return {
valid: true, valid: true,
message: 'Valid', message: _('Valid'),
}; };
} }

View File

@@ -46,7 +46,9 @@ function createConfigSection(section) {
); );
o.depends('proxy_config_type', 'url'); o.depends('proxy_config_type', 'url');
o.rows = 5; o.rows = 5;
// Enable soft wrapping for multi-line proxy URLs (e.g., for URLTest proxy links)
o.wrap = 'soft'; o.wrap = 'soft';
// Render as a textarea to allow multiple proxy URLs/configs
o.textarea = true; o.textarea = true;
o.rmempty = false; o.rmempty = false;
o.ucisection = s.section; o.ucisection = s.section;

View File

@@ -75,7 +75,7 @@ function validatePath(value) {
if (pathRegex.test(value)) { if (pathRegex.test(value)) {
return { return {
valid: true, valid: true,
message: "Valid" message: _("Valid")
}; };
} }
return { return {