Преглед на файлове

Allow dashes in plugin GUID

ghorsington преди 5 години
родител
ревизия
c211162c7c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      BepInEx/Bootstrap/Chainloader.cs

+ 1 - 1
BepInEx/Bootstrap/Chainloader.cs

@@ -85,7 +85,7 @@ namespace BepInEx.Bootstrap
 			_initialized = true;
 		}
 
-		private static Regex allowedGuidRegex { get; } = new Regex(@"^[a-zA-Z0-9\._]+$");
+		private static Regex allowedGuidRegex { get; } = new Regex(@"^[a-zA-Z0-9\._\-]+$");
 
         public static PluginInfo ToPluginInfo(TypeDefinition type)
 		{