mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2025-05-31 22:32:02 +00:00
update
This commit is contained in:
parent
3132b34e2c
commit
1553ce1ab8
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user