Skip to content

Commit

Permalink
Remove the captures from the example.
Browse files Browse the repository at this point in the history
  • Loading branch information
sushraja-msft committed Aug 22, 2024
1 parent acd6fa5 commit d6dd044
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -16647,13 +16647,13 @@ const valid_weapons = ["sword", "bow", "staff"];
return grm\`
{
"id": "elf",
"name": "\${gen("name", { stop: '"' })}",
"age": \${gen("age", /[0-9]+/, { stop: "," })},
"armor": "\${capture("armor", select("leather", "chainmail", "plate"))}",
"weapon": "\${capture("weapon", select(...valid_weapons))}",
"class": "\${gen("class", { stop: '"' })}",
"mantra": "\${gen("mantra", { stop: '"' })}",
"strength": \${gen("strength", /[0-9]+/, { stop: "," })},
"name": "\${gen({ stop: '"' })}",
"age": \${gen(/[0-9]+/, { stop: "," })},
"armor": "\${select("leather", "chainmail", "plate")}",
"weapon": "\${select(...valid_weapons)}",
"class": "\${gen({ stop: '"' })}",
"mantra": "\${gen({ stop: '"' })}",
"strength": \${gen(/[0-9]+/, { stop: "," })},
"items": ["\${item}", "\${item}", "\${item}"]
}\``
},
Expand Down

0 comments on commit d6dd044

Please sign in to comment.