opt: reply item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-28 15:24:28 +08:00
parent 25fc85bd3a
commit 1f71dc9a67
8 changed files with 79 additions and 105 deletions

View File

@@ -27,7 +27,7 @@ class Utils {
static final Random random = Random();
static bool isStringNumeric(str) {
RegExp numericRegex = RegExp(r'^\d+$');
RegExp numericRegex = RegExp(r'^[\d\.]+$');
return numericRegex.hasMatch(str.toString());
}