0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-03-08 13:41:22 -05:00
Squire/test
Øyvind Rønningstad 2e97618f17 Improve linkRegExp
Solves/improves the following:
- Setting a custom linkRegExp messes with the logic for adding
  protocol or mailto. Use named capture groups in the regex, and
  add a case in the href generation that just uses the match
  directly if neither the url nor the email regex matches, which
  would mean that the user's custom regex matched instead.
- Make https the default protocol instead of http
- Use a more general regex for matching the protocol.

Signed-off-by: Øyvind Rønningstad <ronningstad@gmail.com>
2024-01-13 22:15:00 +01:00
..
squire.spec.ts Improve linkRegExp 2024-01-13 22:15:00 +01:00