Skip to content

Commit a93b0bf

Browse files
committed
Expanded var names ↞ [auto-sync from https://github.com/KudoAI/ai-personas/tree/main/python]
1 parent 8da4a00 commit a93b0bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ai-personas/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ print(random_prompt())
125125
```py
126126
def fill_vars_in_template(prompt, vals={}):
127127
import re
128-
return re.sub(r'\$\{(.*?)\}', lambda m: vals.get(m.group(1), m.group(0)), prompt)
128+
return re.sub(r'\$\{(.*?)\}', lambda match: vals.get(match.group(1), match.group(0)), prompt)
129129

130130
prompt = personas['Node.js Automation Script Developer']['prompt']
131131
filled_prompt = fill_vars_in_template(prompt, {'taskType': 'web scraping'})

0 commit comments

Comments
 (0)