Browse Source

Allow dashes in plugin GUID

ghorsington 5 years ago
parent
commit
c211162c7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      BepInEx/Bootstrap/Chainloader.cs

+ 1 - 1
BepInEx/Bootstrap/Chainloader.cs

@@ -85,7 +85,7 @@ namespace BepInEx.Bootstrap
 			_initialized = true;
 			_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)
         public static PluginInfo ToPluginInfo(TypeDefinition type)
 		{
 		{