This commit is contained in:
Fatih Kadir Akın 2025-04-23 05:35:08 +03:00
parent 3132b34e2c
commit 1553ce1ab8

View File

@ -1223,7 +1223,7 @@ function showYamlModal(event, title, content) {
const createYamlButton = modalOverlay.querySelector(".create-yaml-button");
// Create the YAML content
const cleanTitle = decodeURIComponent(title).trim().replace(/^Act as an? /ig, '');
const cleanTitle = decodeURIComponent(title).trim().replace(/^Act as a?n?\s?/ig, '');
const cleanContent = decodeURIComponent(content).trim().replace(/\n+/g, ' ');
const yamlText = `name: ${cleanTitle}