Skip to content

Commit

Permalink
Incluído padrão Registro.br
Browse files Browse the repository at this point in the history
  • Loading branch information
mapsouza committed Oct 17, 2024
1 parent 297d580 commit 820455b
Showing 1 changed file with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,16 @@ public class ServerController: ControllerBase
{
private const string LOG_SOURCE_SERVERS = "SERVERS";

private List<string> _createdDatePatterns = new List<string> { @"Creation Date:(.+)", // base
private static List<string> _createdDatePatterns = new List<string> { @"Creation Date:(.+)", // base
@"created:(.+)",
@"Created On:(.+) UTC",
@"Created On:(.+)",
@"Domain Registration Date:(.+)",
@"Domain Create Date:(.+)",
@"Registered on:(.+)"};

private List<string> _expiredDatePatterns = new List<string> { @"Expiration Date:(.+) UTC", //base UTC
@"Created On:(.+) UTC",
@"Created On:(.+)",
@"Domain Registration Date:(.+)",
@"Domain Create Date:(.+)",
@"Registered on:(.+)",
@"criado:(.+)"};

private static List<string> _expiredDatePatterns = new List<string> { @"Expiration Date:(.+) UTC", //base UTC
@"Expiration Date:(.+)", // base
@"Registry Expiry Date:(.+)", //.org
@"paid-till:(.+)", //.ru
Expand All @@ -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<string> _registrarNamePatterns = new List<string> {
@"Created by Registrar:(.+)",
@"Registrar:(.+)",
@"Registrant Name:(.+)"
};

private List<string> _datePatterns = new List<string> { @"ddd MMM dd HH:mm:ss G\MT yyyy",
@"yyyymmdd"
};
private static List<string> _registrarNamePatterns = new List<string> {
@"Created by Registrar:(.+)",
@"Registrar:(.+)",
@"Registrant Name:(.+)",
@"titular:(.+)" //.br
};

private static List<string> _datePatterns = new List<string> { @"ddd MMM dd HH:mm:ss G\MT yyyy",
@"yyyymmdd",
@"dd\/MM\/yyyy"
};
public ServerController(ControllerBase provider) : base(provider) { }

#region Servers
Expand Down

0 comments on commit 820455b

Please sign in to comment.