diff --git a/SolidCP/Sources/SolidCP.EnterpriseServer.Code/Servers/ServerController.cs b/SolidCP/Sources/SolidCP.EnterpriseServer.Code/Servers/ServerController.cs index e3c3ace2b..93587a7ac 100644 --- a/SolidCP/Sources/SolidCP.EnterpriseServer.Code/Servers/ServerController.cs +++ b/SolidCP/Sources/SolidCP.EnterpriseServer.Code/Servers/ServerController.cs @@ -63,15 +63,16 @@ public class ServerController: ControllerBase { private const string LOG_SOURCE_SERVERS = "SERVERS"; - private List _createdDatePatterns = new List { @"Creation Date:(.+)", // base + private static List _createdDatePatterns = new List { @"Creation Date:(.+)", // base @"created:(.+)", - @"Created On:(.+) UTC", - @"Created On:(.+)", - @"Domain Registration Date:(.+)", - @"Domain Create Date:(.+)", - @"Registered on:(.+)"}; - - private List _expiredDatePatterns = new List { @"Expiration Date:(.+) UTC", //base UTC + @"Created On:(.+) UTC", + @"Created On:(.+)", + @"Domain Registration Date:(.+)", + @"Domain Create Date:(.+)", + @"Registered on:(.+)", + @"criado:(.+)"}; + + private static List _expiredDatePatterns = new List { @"Expiration Date:(.+) UTC", //base UTC @"Expiration Date:(.+)", // base @"Registry Expiry Date:(.+)", //.org @"paid-till:(.+)", //.ru @@ -80,18 +81,21 @@ public class ServerController: ControllerBase @"renewal date:(.+)", //.pl @"Expiry date:(.+)", //.uk @"anniversary:(.+)", //.fr - @"expires:(.+)" //.fi + @"expires:(.+)", //.fi + @"expiração:(.+)" //.br }; - private List _registrarNamePatterns = new List { - @"Created by Registrar:(.+)", - @"Registrar:(.+)", - @"Registrant Name:(.+)" - }; - - private List _datePatterns = new List { @"ddd MMM dd HH:mm:ss G\MT yyyy", - @"yyyymmdd" - }; + private static List _registrarNamePatterns = new List { + @"Created by Registrar:(.+)", + @"Registrar:(.+)", + @"Registrant Name:(.+)", + @"titular:(.+)" //.br + }; + + private static List _datePatterns = new List { @"ddd MMM dd HH:mm:ss G\MT yyyy", + @"yyyymmdd", + @"dd\/MM\/yyyy" + }; public ServerController(ControllerBase provider) : base(provider) { } #region Servers