MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / parseSingleBillingText

Function parseSingleBillingText

static/js/payment.js:966–982  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

964}
965
966function 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
984function splitBatchBlocks(rawText) {
985 const blocks = String(rawText || "")

Callers

nothing calls this directly

Calls 5

getInputValueFunction · 0.85
setParseResultFunction · 0.85
parseCardTextFunction · 0.85
buildParsedSummaryFunction · 0.85
fillBillingFormFunction · 0.85

Tested by

no test coverage detected