scribe/src
Martin Puppe 56b6d546db
Further improve proposed pattern for Redirector
This patch further improves the proposed pattern for the Redirector
extension. In contrast to the old pattern, …

* … it will redirect the URL https://medium.com.
* … it will *not* redirect URLs with top-level domains like mediumXcom.
  (This point is purely theoretical, but it makes the regular expression
  more correct and consistent.)
* … it will *not* redirect URLs like https://link.medium.com/AXEtCilplkb
  which Scribe currently cannot handle. These are shortened URLs that
  users get when they use the Twitter button on Medium to share a post.

In order to implement the last point (not matching link.medium.com), the
pattern uses negative lookbehind. This feature of regular expressions is
supported by all recent browsers for which Redirector is available
(Firefox, Chrome, Edge, Opera)[^1], including the current version of
Firefox ESR (Extended Stability Release).

[^1]: https://caniuse.com/js-regexp-lookbehind
2021-10-15 08:55:26 -04:00
..
actions Support medium's redirectUrl query param 2021-10-11 12:04:17 -04:00
classes Improve title parsing 2021-10-03 18:14:46 -04:00
clients Render embedded content 2021-09-15 15:18:08 -04:00
components Embed widths are now the same width as all content 2021-09-25 13:26:10 -04:00
css Ensure gists display well at all device widths 2021-10-11 20:09:58 -04:00
emails Initial app 2021-05-01 17:03:38 -04:00
js Initial app 2021-05-01 17:03:38 -04:00
models Improve title parsing 2021-10-03 18:14:46 -04:00
operations Initial app 2021-05-01 17:03:38 -04:00
pages Further improve proposed pattern for Redirector 2021-10-15 08:55:26 -04:00
queries Initial app 2021-05-01 17:03:38 -04:00
serializers Initial app 2021-05-01 17:03:38 -04:00
app.cr First step rendering a page 2021-07-04 16:28:03 -04:00
app_database.cr Initial app 2021-05-01 17:03:38 -04:00
app_server.cr Initial app 2021-05-01 17:03:38 -04:00
constants.cr First step rendering a page 2021-07-04 16:28:03 -04:00
scribe.cr Initial app 2021-05-01 17:03:38 -04:00
shards.cr Render embedded content 2021-09-15 15:18:08 -04:00
start_server.cr Initial app 2021-05-01 17:03:38 -04:00