From 928d4502c57ea9fd04c6aa1c14a7471989f9f4d1 Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Mon, 21 Dec 2020 17:19:24 +0100 Subject: [PATCH] fix: regex for newline chars --- RaccineGUI/RaccineCfg/RaccineRulesSync/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaccineGUI/RaccineCfg/RaccineRulesSync/Program.cs b/RaccineGUI/RaccineCfg/RaccineRulesSync/Program.cs index 2499906..49796bc 100644 --- a/RaccineGUI/RaccineCfg/RaccineRulesSync/Program.cs +++ b/RaccineGUI/RaccineCfg/RaccineRulesSync/Program.cs @@ -32,7 +32,7 @@ public static string GetYaraDefines() public static bool SyncContentFromUrl(string contentsUrl, string subdir) { - String newLinePattern = "([^\r]\n)"; + String newLinePattern = "([\r]?\n)"; var httpClient = new HttpClient(); Console.WriteLine("Downloading rules from " + contentsUrl);