mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2025-01-31 00:33:22 -05:00
lowercase
This commit is contained in:
parent
3e513bb5cc
commit
b79dbb2c18
2
.github/workflows/ai_bot.yml
vendored
2
.github/workflows/ai_bot.yml
vendored
@ -145,7 +145,7 @@ jobs:
|
|||||||
.join('\n');
|
.join('\n');
|
||||||
|
|
||||||
console.log('Attempting to extract prompts from README changes...');
|
console.log('Attempting to extract prompts from README changes...');
|
||||||
const promptMatches = [...addedLines.matchAll(/## Act as (?:a |an )?([^\n]+)\n(?:Contributed by:[^\n]*\n)?(?:> )?([^#]+?)(?=\n##|\n\n##|$)/g)];
|
const promptMatches = [...addedLines.matchAll(/## Act as (?:a |an )?([^\n]+)\n(?:Contributed by:[^\n]*\n)?(?:> )?([^#]+?)(?=\n##|\n\n##|$)/ig)];
|
||||||
|
|
||||||
for (const match of promptMatches) {
|
for (const match of promptMatches) {
|
||||||
const actName = `Act as ${match[1].trim()}`;
|
const actName = `Act as ${match[1].trim()}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user