mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-29 22:29:24 +02:00
Fix system resourses check
This commit is contained in:
parent
2df549cfc0
commit
0471676d10
8 changed files with 124 additions and 36 deletions
|
@ -3,6 +3,7 @@ using System.Drawing;
|
|||
using System.Drawing.Imaging;
|
||||
using System.IO.Compression;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace MTWireGuard
|
||||
{
|
||||
|
@ -84,5 +85,7 @@ namespace MTWireGuard
|
|||
"" => throw new ArgumentException($"{nameof(input)} cannot be empty", nameof(input)),
|
||||
_ => string.Concat(input[0].ToString().ToUpper(), input.AsSpan(1))
|
||||
};
|
||||
|
||||
public static string RemoveNonNumerics(this string input) => Regex.Replace(input, "[^0-9.]", "");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue