Skip to content

Commit

Permalink
Escape double quotes in identifiers by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaireNeveu committed Mar 25, 2024
1 parent a4da941 commit 4f565b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sij-core/src/render/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Renderer<Ext extends Extension = NoExtension> {
}

renderIdent(ident: Ident): string {
return `"${ident.name}"`;
return `"${ident.name.replace('"', '""')}"`;
}
renderQualifiedIdent(ident: QualifiedIdent): string {
switch (ident._tag) {
Expand Down

0 comments on commit 4f565b8

Please sign in to comment.