This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
ci4s
/
ci4sManagement-cloud
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
1
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
优化yaml导出测试
dev-lhz
chenzhihang
1 year ago
parent
6056b0ce7e
commit
2c73249a77
1 changed files
with
6 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/YamlUtils.java
+ 6
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/YamlUtils.java
View File
@@ -115,6 +115,11 @@ public class YamlUtils {
}
public static boolean isNumeric(String str) {
return str.matches("-?\\\\d+(\\\\.\\\\d+)?"); // 匹配整数或小数,包括负数
try {
double num = Double.parseDouble(str);
return true;
} catch (NumberFormatException e) {
return false;
}
}
}
Write
Preview
Loading…
Cancel
Save