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

Function splitBatchBlocks

static/js/payment.js:984–994  ·  view source on GitHub ↗
(rawText)

Source from the content-addressed store, hash-verified

982}
983
984function splitBatchBlocks(rawText) {
985 const blocks = String(rawText || "")
986 .split(/\n\s*\n+/)
987 .map((part) => part.trim())
988 .filter(Boolean);
989 if (blocks.length > 1) return blocks;
990 return String(rawText || "")
991 .split(/(?:^-{3,}|^={3,})/m)
992 .map((part) => part.trim())
993 .filter(Boolean);
994}
995
996function renderBatchProfiles() {
997 const wrap = document.getElementById("billing-batch-wrap");

Callers 1

parseBatchBillingTextFunction · 0.85

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected