This commit is contained in:
2025-02-07 13:45:51 +08:00
parent 02c5f23fbf
commit 4906378a52
@@ -909,6 +909,7 @@ class FiledStrand {
}
static def getNumber(def input) {
try{
Pattern pattern = Pattern.compile("\\d+(\\.\\d+)?");
Matcher matcher = pattern.matcher(input);
List<String> list = new ArrayList();
@@ -918,6 +919,9 @@ class FiledStrand {
if(list.size()>0){
return list.get(0);
}
}catch(Exception e){
println input+" error"
}
return null;
}