Skip to content

Conversation

@lerlacher-fm
Copy link
Contributor

The original regex here only accepts the form "Thu, Fri". We should also accept "Thu,Fri" and "Thu Fri". By adding whitespace into the character class for the splitting, we consume any combination of commas and whitespace between arguments. This makes the parser more robust and user-friendly.

Ticket: PLAT-3638

The original regex here only accepts the form "Thu, Fri". We should also
accept "Thu,Fri" and "Thu Fri". By adding whitespace into the character
class for the splitting, we consume any combination of commas and
whitespace between arguments. This makes the parser more robust and
user-friendly.

Ticket: PLAT-3638
@rjbs rjbs merged commit b4b40de into fastmail:main Dec 1, 2025
6 checks passed
@rjbs
Copy link
Member

rjbs commented Dec 1, 2025

Thanks, I have merged this, but also done a bit of refactoring so tests could be added. Through pre-existing faults, this did nothing to normalize order, to remove duplicates, etc. I've fixed a couple small things while doing the above. Your commit is present verbatim.

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