mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-12-05 16:52:29 -05:00
18 lines
419 B
C#
18 lines
419 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|
{
|
|
public static partial class NumericCharacterValidation
|
|
{
|
|
public static bool IsNumeric(char value)
|
|
{
|
|
Regex regex = NumericRegex();
|
|
|
|
return regex.IsMatch(value.ToString());
|
|
}
|
|
|
|
[GeneratedRegex("[0-9]|.")]
|
|
private static partial Regex NumericRegex();
|
|
}
|
|
}
|