소스 검색

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)
 		{