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
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
..
attachments
components Open group regex fixes (#2058) 3 years ago
data Merge branch 'clearnet' into message-requests 3 years ago
fileserver removed old fileserver support 4 years ago
hooks Minor call tweaks (#2051) 3 years ago
interactions Fetch translations (#2056) 3 years ago
models Fetch translations (#2056) 3 years ago
notifications
opengroup Open group regex fixes (#2058) 3 years ago
protobuf
pushnotification unsend for me only on a closed group only deletes locally 4 years ago
receiver Minor call tweaks (#2051) 3 years ago
session Fetch translations (#2056) 3 years ago
shims
state Fetch translations (#2056) 3 years ago
test Minor call tweaks (#2051) 3 years ago
test-integration add a sample test with playwright 3 years ago
types Fetch translations (#2056) 3 years ago
updater
util Minor call tweaks (#2051) 3 years ago
OS.ts
ip2country.d.ts
mic-recorder-to-mp3.d.ts
window.d.ts Fetch translations (#2056) 3 years ago