From bfc1d8a59feb6065df70710184fdc50b281bf134 Mon Sep 17 00:00:00 2001 From: Techbot121 Date: Tue, 21 Nov 2023 17:39:24 +0100 Subject: [PATCH] fix line number being undefined for engine --- app/services/webapp/api/gmod-error-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/webapp/api/gmod-error-handler.ts b/app/services/webapp/api/gmod-error-handler.ts index 7780e1fd..9e300440 100644 --- a/app/services/webapp/api/gmod-error-handler.ts +++ b/app/services/webapp/api/gmod-error-handler.ts @@ -42,7 +42,7 @@ type StackMatchGroups = { }; const megaRex = - /(?\d+)\. (?\S+) - (?RunString|LuaCmd|LUACMD)?(\[(?STEAM_\d:\d:\d+)\](?.+))?(<(?\d:\d:\d+)\|(?.+?)>)?(<(?[^:]+)>)?(<(?.+):(?.+)>)?(?\[C\]:-1)?(?(?(?:lua|gamemodes)\/(?[-_.A-Za-z0-9]+?)(?:\/.*)?\/(?[-_.A-Za-z0-9]+)\.(?lua)):(?\d+))?/g; + /(?\d+)\. (?\S+) - (?RunString|LuaCmd|LUACMD)?(\[(?STEAM_\d:\d:\d+)\](?.+))?(<(?\d:\d:\d+)\|(?.+?)>)?(<(?[^:]+)>)?(<(?.+):(?.+)>)?(?\[C\])?(?(?(?:lua|gamemodes)\/(?[-_.A-Za-z0-9]+?)(?:\/.*)?\/(?[-_.A-Za-z0-9]+)\.(?lua))?:(?-?\d+))/g; const SuperReplacer = (_: string, ...args: any[]) => { const groups = args.at(-1) as StackMatchGroups;