felangel / felangel/mason

fix: On windows path gets resolved with error because all / get replaced with \ even in closing tokens

Ouverte
#676 23 commentaires 7 réactions 1 personne assignée Réclamée par @felangel Voir sur GitHub
bug customer:🦄 investigating
Langage dominant
Dart
Étoiles
1.1k
Forks
113
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**Description**

`/` that are part of the closing tokens aka `{{/foo}}` get converted to a `\` on windows when used in path.

**Steps To Reproduce**

1. Brick with `__brick__/{{#foo}}boom/baam/booz{{/foo}}/README.md`
2. Generate README.md

**Expected Behavior**
README.md should be generated at location `boom\baam\booz\` if foo is true

But instead the `/`from `{{/foo}}` gets convertet to a `\` and leads to an error
`OS Error: The system cannot find the path specified`

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.