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/session
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).
3 years ago
..
calling Fetch translations (#2056) 3 years ago
conversation Fetch translations (#2056) 3 years ago
icon Minor call tweaks (#2051) 3 years ago
menu Fetch translations (#2056) 3 years ago
registration Fetch translations (#2056) 3 years ago
settings Fetch translations (#2056) 3 years ago
AccentText.tsx update design of registration page 4 years ago
ActionsPanel.tsx cleanup props passing of avatar and name with a custom hook 3 years ago
LeftPaneContactSection.tsx fixed crash on leftpaneContactSection 4 years ago
LeftPaneMessageSection.tsx Open group regex fixes (#2058) 3 years ago
LeftPaneSectionHeader.tsx Minor call tweaks (#2051) 3 years ago
LeftPaneSettingSection.tsx add data-testid for leftpane sections and edit profile dialog 4 years ago
MessageRequestsBanner.tsx Addressing PR comments 3 years ago
PillDivider.tsx remove addcontacts bottom buttons on contact page/useless 4 years ago
SessionButton.tsx Minor call tweaks (#2051) 3 years ago
SessionClosableOverlay.tsx Minor call tweaks (#2051) 3 years ago
SessionDropdown.tsx Minor call tweaks (#2051) 3 years ago
SessionDropdownItem.tsx Minor call tweaks (#2051) 3 years ago
SessionHTMLRenderer.tsx increase prettier maxWidth to 100 4 years ago
SessionIdEditable.tsx increase prettier maxWidth to 100 4 years ago
SessionInboxView.tsx move the state of calling to its own slice 4 years ago
SessionInput.tsx Minor call tweaks (#2051) 3 years ago
SessionJoinableDefaultRooms.tsx Minor call tweaks (#2051) 3 years ago
SessionMemberListItem.tsx Minor call tweaks (#2051) 3 years ago
SessionNotificationCount.tsx move tsx and theme to css variables part1 4 years ago
SessionPasswordPrompt.tsx move tsx and theme to css variables part1 4 years ago
SessionRadio.tsx cleanup SessionSettings by making them less a IdoEverything 4 years ago
SessionRadioGroup.tsx speedup tests 4 years ago
SessionRegistrationView.tsx finish rework registration page 4 years ago
SessionScrollButton.tsx move tsx and theme to css variables part1 4 years ago
SessionSearchInput.tsx add data-testid for leftpane sections and edit profile dialog 4 years ago
SessionSpinner.tsx do not shrink SessionSpinner 4 years ago
SessionToast.tsx move tsx and theme to css variables part1 4 years ago
SessionToastContainer.tsx our video off => show our avatar 4 years ago
SessionToggle.tsx cleanup SessionSettings by making them less a IdoEverything 4 years ago
SessionWrapperModal.tsx Minor call tweaks (#2051) 3 years ago
SplitViewContainer.tsx add a handle to resize the inconvo call video 4 years ago