We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54cf1f4 commit a430a2bCopy full SHA for a430a2b
1 file changed
summary/src/parse/assign.rs
@@ -81,7 +81,10 @@ pub fn parse_docx_table(content: Vec<String>) -> SummaryInfo {
81
82
// 英文名称
83
if item.contains("电池/电芯类别") && index + 2 < content.len() {
84
- let cn_name = content[index + 2].clone();
+ let mut cn_name = content[index + 2].clone();
85
+ if cn_name.contains("额定电压") && cn_name.contains("Voltage") {
86
+ cn_name = "".to_string();
87
+ }
88
if !cn_name.contains("型号") && !cn_name.contains("Type") {
89
summary.en_name = cn_name;
90
}
0 commit comments