You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/components
Jason Rhinelander 1ec637b551
Open group regex fixes (#2058)
* Open group URL regex fixes

- Capital letters in room tokens were not being accepted (it eventually
  gets lower-cased internally, which works fine, but that happens
  *after* the URL is tested for acceptability).
- `-` in room was not being allowed (it is and always has been on SOGS,
  session-android, and session-ios).
- single-letter room ids are valid, but only 2+ letter ids were being
  accepted.
- complete URL regex wasn't anchored so something like
  `garbagehttps://example.com/room?public_key=<64hex>moregarbage` was
  being accepted in the GUI input (it fails later when other code tries
  to parse it as a URL).
- removed `m` modifier from open group regex: without anchors it wasn't
  doing anything anyway, but *with* anchors it would still allow
  leading/trailing garbage if delineated by newlines.
- public key regex was accepting g-z letters, and not accepting A-F.
- various regex cleanups:
  - use non-capture groups (?:...) rather than capturing groups (...)
  - avoid repetition in host segment matching
- tightened up host pattern matching a bit:
  - DNS host segments have a max length of 63
  - Limit port max length to 5, and disallow starting with 0

* Show an error when the open group URL is invalid

It's quite disconcerting when you have a bad open group URL and try to
add it and the join button just "doesn't work" without any feedback at
all.  Fix it to show an error message.  (There is already an i18n entry
for this because this same message is thrown if the URL can't be parsed
later on).
4 years ago
..
AvatarPlaceHolder Minor call tweaks (#2051) 4 years ago
basic data extraction notification on a line rather than a column 4 years ago
conversation Fetch translations (#2056) 4 years ago
dialog Fetch translations (#2056) 4 years ago
session Open group regex fixes (#2058) 4 years ago
Avatar.md
Avatar.tsx Fetch translations (#2056) 4 years ago
CaptionEditor.md
CaptionEditor.tsx move tsx and theme to css variables part1 4 years ago
ContactListItem.md
ContactListItem.tsx cleanup props passing of avatar and name with a custom hook 4 years ago
ConversationListItem.md
ConversationListItem.tsx Minor call tweaks (#2051) 4 years ago
Intl.md
LeftPane.md
LeftPane.tsx PR changes 4 years ago
Lightbox.md
Lightbox.tsx Minor call tweaks (#2051) 4 years ago
LightboxGallery.md
LightboxGallery.tsx
MainHeader.md
MainViewController.tsx
MessageBodyHighlight.md
MessageSearchResult.md
SearchResults.md
SearchResults.tsx remove search messages frpm search result 4 years ago
SessionMainPanel.tsx finish cleaning up Settings page 4 years ago
Spinner.md
StartNewConversation.md
UserSearchResults.tsx Cleanup redux store (#1925) 4 years ago