mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-14 23:46:50 +03:00
fix: resolve copilot suggestions
This commit is contained in:
@@ -13,7 +13,7 @@ export function validatePath(value: string): ValidationResult {
|
||||
if (pathRegex.test(value)) {
|
||||
return {
|
||||
valid: true,
|
||||
message: 'Valid',
|
||||
message: _('Valid'),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,9 @@ function createConfigSection(section) {
|
||||
);
|
||||
o.depends('proxy_config_type', 'url');
|
||||
o.rows = 5;
|
||||
// Enable soft wrapping for multi-line proxy URLs (e.g., for URLTest proxy links)
|
||||
o.wrap = 'soft';
|
||||
// Render as a textarea to allow multiple proxy URLs/configs
|
||||
o.textarea = true;
|
||||
o.rmempty = false;
|
||||
o.ucisection = s.section;
|
||||
|
||||
@@ -75,7 +75,7 @@ function validatePath(value) {
|
||||
if (pathRegex.test(value)) {
|
||||
return {
|
||||
valid: true,
|
||||
message: "Valid"
|
||||
message: _("Valid")
|
||||
};
|
||||
}
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user