fix regex for bun
All checks were successful
Code quality checks / biome (push) Successful in 8s

This commit is contained in:
creations 2025-05-24 16:38:37 -04:00
parent 499b8ec46d
commit be8073ea02
Signed by: creations
GPG key ID: 8F553AA4320FC711

View file

@ -78,7 +78,7 @@ function getCallerInfo(config: Required<LoggerConfig>): {
};
}
const rawMatch = line.match(/at\s+(\/.*):(\d+):(\d+)/);
const rawMatch = line.match(/at\s+(?:.*\()?(.+):(\d+):(\d+)\)?/);
if (rawMatch) {
const fullPath = rawMatch[1];
const lineNumber = rawMatch[2];
@ -146,7 +146,7 @@ function parsePattern(ctx: PatternContext): string {
config.prettyPrint && typeof data === "object" && data !== null
? inspect(data, {
depth: null,
colors: false,
colors: true,
breakLength: 1,
compact: false,
})