Add another superpower: fetching 2FA deviceID automatically

This commit is contained in:
JustArchi
2020-07-05 00:45:13 +02:00
parent 0ce04415ea
commit 4ead85965a
9 changed files with 81 additions and 140 deletions

View File

@@ -177,17 +177,6 @@ namespace ArchiSteamFarm {
return Regex.IsMatch(key, @"^[0-9A-Z]{4,7}-[0-9A-Z]{4,7}-[0-9A-Z]{4,7}(?:(?:-[0-9A-Z]{4,7})?(?:-[0-9A-Z]{4,7}))?$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
}
[PublicAPI]
public static bool IsValidDigitsText(string text) {
if (string.IsNullOrEmpty(text)) {
ASF.ArchiLogger.LogNullError(nameof(text));
return false;
}
return text.All(char.IsDigit);
}
[PublicAPI]
public static bool IsValidHexadecimalText(string text) {
if (string.IsNullOrEmpty(text)) {