Skip to content

Commit c2dff8e

Browse files
committed
Try escaping
1 parent 5cce9e1 commit c2dff8e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

{{cookiecutter.project_name|replace(" ", "")}}/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ These instructions are always relevant:
1010

1111
- **Name**: {{ cookiecutter.project_name }}
1212
- **Package**: {{ cookiecutter.project_slug }}
13-
- **Description**: {{ cookiecutter.project_short_description }}
13+
- **Description**: {{ cookiecutter.project_short_description | replace('"', '\\"') | replace("'", "\\\\'") }}
1414
- **Organization**: {{ cookiecutter.company_name }} ({{ cookiecutter.company_domain }})
1515
- **Python Version**: {{ cookiecutter.python_version }}+
1616

{{cookiecutter.project_name|replace(" ", "")}}/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ RUN groupadd -r app && useradd -r -g app app
5252

5353
# Metadata
5454
ARG NAME="{{ cookiecutter.project_slug }}"
55-
ARG DESCRIPTION="{{ cookiecutter.project_short_description }}"
55+
ARG DESCRIPTION="{{ cookiecutter.project_short_description | replace('"', '\\"') | replace("'", "\\\\'") }}"
5656
ARG TIMESTAMP
5757
ARG COMMIT_HASH
5858
ENV SERVICE="${NAME}"

{{cookiecutter.project_name|replace(" ", "")}}/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "{{ cookiecutter.project_slug }}"
33
version = "0.0.0"
4-
description = "{{ cookiecutter.project_short_description }}"
4+
description = "{{ cookiecutter.project_short_description | replace('"', '\\"') | replace("'", "\\\\'") }}"
55
authors = [
66
{ name = "{{ cookiecutter.company_name }}", email = "Python@{{ cookiecutter.company_domain }}" }
77
]

{{cookiecutter.project_name|replace(" ", "")}}/service_definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: {{ cookiecutter.project_slug }}
2-
description: {{ cookiecutter.project_short_description }}
2+
description: "{{ cookiecutter.project_short_description | replace('"', '\\"') | replace("'", "\\\\'") }}"
33
tags: [backend] # Example options: api, backend, frontend, worker, scheduler, gateway, proxy, cache, storage
44
develop:
55
software:

0 commit comments

Comments
 (0)