Skip to content

Commit bbf2056

Browse files
fix missing escaped characters
1 parent 035c657 commit bbf2056

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

Code/Helpers/Log.cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using LabApi.Features.Console;
1+
using System.Diagnostics;
2+
using System.Text;
3+
using LabApi.Features.Console;
24
using SER.Code.ScriptSystem;
35

46
namespace SER.Code.Helpers;
@@ -44,4 +46,18 @@ public static void D(string msg)
4446
Logger.Raw(msg, ConsoleColor.Cyan);
4547
#endif
4648
}
47-
}
49+
50+
public static string GetStackTrace()
51+
{
52+
StackTrace stackTrace = new StackTrace(true);
53+
54+
StringBuilder sb = new("");
55+
foreach (var stackFrame in stackTrace.GetFrames()!.Take(10))
56+
{
57+
sb.AppendLine($"-> {stackFrame.GetMethod().Name}");
58+
}
59+
60+
return sb.ToString();
61+
}
62+
}
63+

Code/MethodSystem/Methods/TextMethods/ReplaceTextInVariableMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using SER.Code.Helpers.Exceptions;
55
using SER.Code.MethodSystem.BaseMethods.Synchronous;
66
using SER.Code.MethodSystem.MethodDescriptors;
7-
using SER.Code.ScriptSystem;
87
using SER.Code.ValueSystem;
98
using SER.Code.VariableSystem.Variables;
109

Code/TokenSystem/Slices/CollectionSlice.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public override bool CanContinueAfterAdd(char c)
5151
if (c == '`')
5252
{
5353
_ignoreNext = true;
54+
55+
// this is such a fucking hack
56+
if (Type is not CollectionBrackets.Quotes)
57+
{
58+
_value.Append(c);
59+
}
60+
5461
return true;
5562
}
5663

0 commit comments

Comments
 (0)