Merge branch 'script_gj' into 'master'

update

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