Skip to content

Commit 974086b

Browse files
committed
v1.23: stop reformatting period names, show them exactly as uploaded everywhere
1 parent 052c96b commit 974086b

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,7 @@ <h4>Pending UPI payments <span id="pendingCount" class="pending-badge">0</span><
436436
function todayISO(){ return new Date().toISOString().slice(0,10); }
437437
function monthLabel(){ return new Date().toLocaleString("en-IN",{month:"long",year:"numeric"}); }
438438
function prettyPeriod(note){
439-
const s=String(note||"").trim();
440-
if(!/^[A-Z0-9 ]+$/.test(s)) return note;
441-
const m=s.match(/^(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)[A-Z]*\s*([0-9]*)$/);
442-
if(!m) return note;
443-
const M={JAN:"January",FEB:"February",MAR:"March",APR:"April",MAY:"May",JUN:"June",JUL:"July",AUG:"August",SEP:"September",OCT:"October",NOV:"November",DEC:"December"};
444-
return M[m[1]] + (m[2]?" "+m[2]:"") + " 2026";
439+
return String(note||"").trim();
445440
}
446441
function entryLabel(e){
447442
if(e.type==="payment"){

0 commit comments

Comments
 (0)