mirror of
https://github.com/rendercv/rendercv.git
synced 2026-04-24 17:10:34 -04:00
1. clean_url: use rstrip("/") instead of single-slash strip. URLs
with multiple trailing slashes (e.g., "example.com//") now clean
fully. Also restores idempotency (clean(clean(x)) == clean(x)).
2. get_date_object: use Date(year, 1, 1) instead of
Date.fromisoformat(f"{date}-01-01"). The fromisoformat call
crashed on years < 1000 because it requires 4-digit year strings.
3. build_date_placeholders: use f"{year % 100:02d}" for
YEAR_IN_TWO_DIGITS instead of str(year)[-2:]. The slice produced
1-char output for single-digit years (e.g., year 9 gave "9"
instead of "09").
Test ranges widened back to full datetime.date range now that the
source code handles all values correctly.