From 7eff4020f9375ec3b46c52f1a9f6da63803e7814 Mon Sep 17 00:00:00 2001 From: Rokojori Date: Fri, 17 Jul 2026 21:11:37 +0200 Subject: [PATCH] Auth Polish 3 --- source/server/debug/RJLog.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/server/debug/RJLog.ts b/source/server/debug/RJLog.ts index 207bf38..dbe25ce 100644 --- a/source/server/debug/RJLog.ts +++ b/source/server/debug/RJLog.ts @@ -11,6 +11,7 @@ export class RJLog static readonly matcherWithFunction = /^\s+at\s(.+)\s\(.+?:(\d+:\d+)\)/; static readonly matcherFile = /\(.+?\\(\w+)\.js:(\d+:\d+)\)/; static readonly matcherAnonymous = /^\s+at\s(.+)\s\((.+)\)/; + static readonly functionMatcher = /^\s+at\s(.*?)(\w+\.(?:ts|js)):(\d+:\d+)$/; static readonly logAlwaysLineInfo = true; @@ -18,6 +19,7 @@ export class RJLog static _parseLineResult( line:string ):RegExpExecArray|null { let result = RJLog.matcherWithFunction.exec( line ) || + RJLog.functionMatcher.exec( line ) || RJLog.matcherFile.exec( line ) || RJLog.matcherAnonymous.exec( line ); @@ -71,7 +73,7 @@ export class RJLog return output.join( "" ); } - static getLineInfo( color:string = RJLog.logColor, stackTrace?:string, lineIndex:number = 2 ) + static getLineInfo( color:string = RJLog.logColor, stackTrace?:string, lineIndex:number = 3 ) { stackTrace = stackTrace || ( new Error().stack + "" );