ai #1

Merged
ssa merged 17 commits from ai into main 2026-02-18 22:44:42 +03:00
Showing only changes of commit 18193b71c1 - Show all commits

View File

@@ -51,7 +51,9 @@ export function ConfigTemplate(props: ConfigTemplateProps) {
// Validate JSON on every change
try {
if (value.trim()) {
JSON.parse(value);
// Replace @placeholders@ with valid JSON values for validation
const sanitizedValue = value.replace(/"@?(\w+)@?"/g, '"__PLACEHOLDER__"');
JSON.parse(sanitizedValue);
setJsonError(null);
} else {
setJsonError(null);