Skip to content

Commit

Permalink
add todo for issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davemarco committed Nov 18, 2024
1 parent 9d5ae88 commit c74eb59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/formatters/YScopeFormatter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {


/**
* A formatter that uses a Yscope format string to format log events into a string. See
* A formatter that uses a YScope format string to format log events into a string. See
* `YScopeFormatterOptionsType` for details about the format string.
*/
class YScopeFormatter implements Formatter {
Expand Down Expand Up @@ -67,6 +67,10 @@ class YScopeFormatter implements Formatter {
let formattedLog =
this.#formatString.replace(placeholderPattern, replacePlaceholder);


/* eslint-disable-next-line no-warning-comments */
// TODO: This is simply but lossy and will remove backlash from user fields. Working on a
// better way to avoid this issue.
const backslashPattern = new RegExp(BACKSLASH_REGEX, "g");
formattedLog = formattedLog.replace(backslashPattern, "");

Expand Down

0 comments on commit c74eb59

Please sign in to comment.