dahlia / logtape

Simple logging library with zero dependencies for Deno, Node.js, Bun, browsers, and edge functions
http://logtape.org/
MIT License
520 stars 12 forks source link

Escape curly braces #2

Closed windupbird144 closed 6 months ago

windupbird144 commented 6 months ago

Addresses #1 - This commit allows using double curly braces to log {{ single braces { in the function call syntax.

logger.debug("This logs {{single}} curly braces.");

This logs {single} curly braces.
codecov[bot] commented 6 months ago

Welcome to Codecov :tada:

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered :open_umbrella:

windupbird144 commented 6 months ago

Thanks for your review. I added the test and entry in the changelog file. Unpaired single curly brackets are not handled in this commit, as they aren't handled in the current implementation either.