Normalize EVENT_VIEWER_URL trailing slash once in env.ts #16
Loading…
Reference in a new issue
No description provided.
Delete branch "mailship-aee-extract-shared-normalized-event-viewer-u-671"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mailship-aee
Consolidate the duplicated
EVENT_VIEWER_URL.replace(/\/$/, '')trailing-slash strip (occurring 6 times across 3 files) into a single normalization at the export source inenv.ts.Changes
src/env.ts— TheEVENT_VIEWER_URLexport now strips a trailing slash at definition time.BRAND_LOGOno longer needs an ad-hoc strip.src/server.ts— Removed 3×.replace(/\/$/, '')in the/confirmroute'ssettingsUrltemplates.src/mailer.ts— Removed 2×.replace(/\/$/, '')insendConfirmandsendDigest. The unrelated protocol-prefix strip (/^https?:\/\//) is preserved for the link display text.How to test
Run
bash script/checks— type-check, lint, build, and all 16 unit tests must pass. No behavioral change is expected; the regex is identical, just applied earlier.