0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-18 12:42:37 -05:00
Squire/source
Ø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
..
keyboard Fix format intent lost after pressing Space 2023-09-27 14:56:00 +10:00
node Squire: Fix crash removing formatting 2023-10-09 11:52:58 +11:00
range Replace nbsp with regular sp when extracting text 2023-10-02 13:23:12 +11:00
Clean.ts Remove redundant <span> after replacing styles 2023-02-01 13:52:53 +11:00
Clipboard.ts Fix empty string on clipboard if plainTextOnly 2023-10-03 11:13:02 +11:00
Constants.ts Squire 2.0 2023-01-23 13:18:29 +11:00
Editor.ts Improve linkRegExp 2024-01-13 22:15:00 +01:00
Legacy.ts Squire 2.0 2023-01-23 13:18:29 +11:00
Squire.ts Squire 2.0 2023-01-23 13:18:29 +11:00