Merge pull request #808 from hsin19/feature/escape-toml-backslashes

fix: correctly escape backslashes in TOML slash command outputs
This commit is contained in:
Den Delimarsky
2025-10-10 10:47:26 -07:00
committed by GitHub

View File

@@ -91,6 +91,7 @@ generate_commands() {
case $ext in
toml)
body=$(printf '%s\n' "$body" | sed 's/\\/\\\\/g')
{ echo "description = \"$description\""; echo; echo "prompt = \"\"\""; echo "$body"; echo "\"\"\""; } > "$output_dir/speckit.$name.$ext" ;;
md)
echo "$body" > "$output_dir/speckit.$name.$ext" ;;