Fixed IC10Editor implementation bug where IC10 code would not update after clicking 'Cancel'

This commit is contained in:
2025-12-27 22:18:21 -07:00
parent 3543b87561
commit de31851153
4 changed files with 134 additions and 48 deletions

View File

@@ -1,4 +1,3 @@
using System.Text.RegularExpressions;
using BepInEx;
using HarmonyLib;
@@ -44,26 +43,6 @@ namespace Slang
private static Harmony? _harmony;
private static Regex? _slangSourceCheck = null;
private static Regex SlangSourceCheck
{
get
{
if (_slangSourceCheck is null)
{
_slangSourceCheck = new Regex(@"[;{}()]|\b(let|fn|device)\b|\/\/");
}
return _slangSourceCheck;
}
}
public static bool IsSlangSource(ref string input)
{
return SlangSourceCheck.IsMatch(input);
}
public void Awake()
{
L.SetLogger(Logger);