From 718824a42fc3afa1c0971f9c1c6df0c0acd5fc77 Mon Sep 17 00:00:00 2001 From: Jacob Marks <100745682+J8k3@users.noreply.github.com> Date: Sat, 16 May 2026 23:35:01 -0400 Subject: [PATCH] Fix Pan.mjs: operator-linebreak for cardTypeNote ternary --- src/core/lib/Pan.mjs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/lib/Pan.mjs b/src/core/lib/Pan.mjs index c8117d17..41cbb630 100644 --- a/src/core/lib/Pan.mjs +++ b/src/core/lib/Pan.mjs @@ -222,9 +222,9 @@ function parsePan(pan) { network: brand || "Unknown", cardType: typeHint ? typeHint.likelyType : "Unknown", cardTypeConfidence: typeHint ? typeHint.confidence : "low", - cardTypeNote: typeHint - ? typeHint.note - : "Card type cannot be determined — the PAN did not match a known network range.", + cardTypeNote: typeHint ? + typeHint.note : + "Card type cannot be determined — the PAN did not match a known network range.", majorIndustryIdentifier: mii, majorIndustryIdentifierDescription: MII_DESCRIPTIONS[mii] || "Unknown", issuerIdentificationNumber: normalized.substring(0, Math.min(8, normalized.length)), @@ -336,5 +336,4 @@ export { generateTestPan, isLuhnValid, parsePan, -}; - +}; \ No newline at end of file