作者 xudada

修复尺寸部分,识别剔除不了多余数据问题

@@ -2201,7 +2201,9 @@ Handling Information @@ -2201,7 +2201,9 @@ Handling Information
2201 } 2201 }
2202 2202
2203 // 删除 DIMS: 行和 VOL: 行 2203 // 删除 DIMS: 行和 VOL: 行
2204 - const cleanedValue = value.replace(/DIMS:\s*/gi, '').replace(/VOL:\s*\d+\.\d+\s*CBM/gi, ''); 2204 + const cleanedValue = value
  2205 + .replace(/DIMS:\s*/gi, '')
  2206 + .replace(/VOL:\s*\d+(\.\d+)?\s*CBM/gi, '');
2205 2207
2206 // 将剩余内容按行分割,并去除空行 2208 // 将剩余内容按行分割,并去除空行
2207 const lines = cleanedValue.split('\n').filter(line => line.trim() !== ''); 2209 const lines = cleanedValue.split('\n').filter(line => line.trim() !== '');