refactor: Update Mikrotik config validation logic to improve brace counting accuracy and enhance AutoUrlManager UI with consistent card layouts, larger icons, and refined button styles for better user experience.
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m50s

This commit is contained in:
2025-12-06 14:57:41 +07:00
parent fee74c377f
commit 8d6d2bbe25
2 changed files with 45 additions and 58 deletions
+5 -2
View File
@@ -39,8 +39,11 @@ function validateMikrotikConfig(config) {
inBlock = true;
blockName = line.match(/^\/\w+(\s+\w+)*/)?.[0] || '';
currentBlockLine = lineNum;
braceBalance++;
continue;
// Считаем скобки только один раз для этой строки (чтобы не дублировать подсчёт ниже)
const openBraces = (line.match(/\{/g) || []).length;
const closeBraces = (line.match(/\}/g) || []).length;
braceBalance += openBraces - closeBraces;
continue;
}
// Подсчет фигурных скобок