← back to Rentv 2026
auto-save: 2026-08-04T15:04:21 (1 files) — public/closings.html
89f3741f87cf47d7b224e81d5d2da13696531754 · 2026-08-04 15:04:23 -0700 · Steve Abrams
Files touched
Diff
commit 89f3741f87cf47d7b224e81d5d2da13696531754
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Aug 4 15:04:23 2026 -0700
auto-save: 2026-08-04T15:04:21 (1 files) — public/closings.html
---
public/closings.html | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/public/closings.html b/public/closings.html
index 8d09adf7..404c542a 100644
--- a/public/closings.html
+++ b/public/closings.html
@@ -65,11 +65,12 @@ const MONTHS={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10
const esc=s=>String(s??'').replace(/[&<>"]/g,c=>({'&':'&','<':'<','>':'>','"':'"'}[c]));
// Date is encoded in the image filename, e.g. ...Jul182026.jpg -> 2026-07-18.
function parseDate(img){
- // Month may be a 3-letter abbrev (Jul) OR a full name (June/July/March) — key off the first 3 letters.
- const m=String(img||'').match(/([A-Z][a-z]{2,8})(\d{1,2})(\d{4})\.(?:jpg|jpeg|png|webp)/i);
+ // Month is capitalized, immediately before the day+year+ext. Lazy so it grabs ONLY the
+ // month (not trailing name letters), case-sensitive so it anchors on the capital M.
+ // Handles 3-letter abbrev (Jul) AND full names (June/July) — key off the first 3 letters.
+ const m=String(img||'').match(/([A-Z][a-z]+?)(\d{1,2})(\d{4})\.(?:jpg|jpeg|png|webp)/);
if(!m) return null;
- const key=(m[1][0].toUpperCase()+m[1].slice(1,3).toLowerCase());
- const mo=MONTHS[key];
+ const mo=MONTHS[m[1].slice(0,3)];
if(mo==null) return null;
return new Date(Date.UTC(+m[3], mo, +m[2]));
}
← 45ac1811 rentv closings: parse full-month-name dates (June/July) → 18
·
back to Rentv 2026
·
rentv: make /closings customer-facing (public card grid, dat 28220187 →