diff --git a/landing/index.html b/landing/index.html index e223863..2f62ad4 100644 --- a/landing/index.html +++ b/landing/index.html @@ -1195,15 +1195,23 @@ npm install https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz & // Regex to capture content between ```text and ``` inside the headers // strict on the header, loose on the code block language (text, markdown, or none) - const dailyMatch = text.match(/## Daily Scheduler Meta Prompt[\s\S]*?```\w*([\s\S]*?)```/); - const weeklyMatch = text.match(/## Weekly Scheduler Meta Prompt[\s\S]*?```\w*([\s\S]*?)```/); + // Using non-capturing group (?:[^\n\r]*)? for optional language hint on the same line + // followed by newline(s) to start content capture + const dailyMatch = text.match(/## Daily Scheduler Meta Prompt[\s\S]*?```(?:[^\n\r]*)?[\r\n]+([\s\S]*?)```/); + const weeklyMatch = text.match(/## Weekly Scheduler Meta Prompt[\s\S]*?```(?:[^\n\r]*)?[\r\n]+([\s\S]*?)```/); if (dailyMatch && dailyMatch[1]) { document.getElementById('daily-code').textContent = dailyMatch[1].trim(); + } else { + console.warn('Daily prompt regex mismatch'); + document.getElementById('daily-code').textContent = 'Error: Daily prompt format mismatch in META_PROMPTS.md'; } if (weeklyMatch && weeklyMatch[1]) { document.getElementById('weekly-code').textContent = weeklyMatch[1].trim(); + } else { + console.warn('Weekly prompt regex mismatch'); + document.getElementById('weekly-code').textContent = 'Error: Weekly prompt format mismatch in META_PROMPTS.md'; } } catch (error) { console.error('Error fetching meta prompts:', error); diff --git a/verification_screenshot.png b/verification_screenshot.png new file mode 100644 index 0000000..8de213c Binary files /dev/null and b/verification_screenshot.png differ