Skip to content

Commit

Permalink
fix: preserve tag casing (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonleex committed Jun 26, 2023
1 parent c9abbff commit 2c4003c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/consola.ts
Expand Up @@ -296,11 +296,11 @@ export class Consola {
delete logObj.additional;
}

// Normalize type and tag to lowercase
// Normalize type to lowercase
logObj.type = (
typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log"
) as LogType;
logObj.tag = typeof logObj.tag === "string" ? logObj.tag.toLowerCase() : "";
logObj.tag = typeof logObj.tag === "string" ? logObj.tag : "";

// Resolve log
/**
Expand Down

0 comments on commit 2c4003c

Please sign in to comment.