Skip to content

fix(alert): More permissive URL regex#3261

Merged
jlucytan merged 3 commits into
mainfrom
jlt/alerts/further-characters-in-links
Jun 12, 2026
Merged

fix(alert): More permissive URL regex#3261
jlucytan merged 3 commits into
mainfrom
jlt/alerts/further-characters-in-links

Conversation

@jlucytan

@jlucytan jlucytan commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Scope

Asana Ticket: ⚠️ Fix alerts with URLs with weird chars

Implementation

Adds a bunch of characters to the url regex to be allowed.

Screenshots

Before: link shown is split
image

After: link is together
image

How to test

Find some live alerts in local that are broken (need to be pointed to api-dev) and verify they're no longer broken.

http://localhost:4001/schedules/CR-Providence/timetable
Providence currently has one

@jlucytan jlucytan requested a review from a team as a code owner June 12, 2026 19:39
@jlucytan jlucytan requested a review from lvachon1 June 12, 2026 19:39

@lvachon1 lvachon1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't realize character ranges in regex expressions (eg, a-z or 0-9) can be between any two ascii code points, neat!

@jlucytan jlucytan enabled auto-merge (squash) June 12, 2026 19:50
@jlucytan jlucytan merged commit 93b4928 into main Jun 12, 2026
43 of 45 checks passed
@jlucytan jlucytan deleted the jlt/alerts/further-characters-in-links branch June 12, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants