()
| 964 | } |
| 965 | |
| 966 | function parseSingleBillingText() { |
| 967 | const text = getInputValue("billing-paste-text"); |
| 968 | if (!text) { |
| 969 | setParseResult("请先粘贴文本", "error"); |
| 970 | return; |
| 971 | } |
| 972 | |
| 973 | const parsed = parseCardText(text); |
| 974 | const summary = buildParsedSummary(parsed); |
| 975 | if (!summary.length) { |
| 976 | setParseResult("未识别到可用信息,请检查文本格式", "error"); |
| 977 | return; |
| 978 | } |
| 979 | |
| 980 | fillBillingForm(parsed); |
| 981 | setParseResult(`识别成功: ${summary.join(" | ")}`, "success"); |
| 982 | } |
| 983 | |
| 984 | function splitBatchBlocks(rawText) { |
| 985 | const blocks = String(rawText || "") |
nothing calls this directly
no test coverage detected