Skip to content

Commit

Permalink
fixup! Escape curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
windupbird144 committed Apr 26, 2024
1 parent 1997dcd commit c94ae94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Version 0.4.0

To be released.

- Curly braces can now be escaped with double curly braces


Version 0.3.0
-------------
Expand Down
4 changes: 4 additions & 0 deletions logtape/logger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,10 @@ Deno.test("parseMessageTemplate()", () => {
parseMessageTemplate("Hello, {foo}, {bar}", { foo: 123, bar: 456 }),
["Hello, ", 123, ", ", 456, ""],
);
assertEquals(
parseMessageTemplate("Hello, {{world!", { foo: 123 }),
["Hello, {world!"],
);
});

Deno.test("renderMessage()", () => {
Expand Down

0 comments on commit c94ae94

Please sign in to comment.