Commit Graph

20 Commits

Author SHA1 Message Date
Bauke 2acb8d804b
Automatically prefix 'https://' to redirected URLs if they fail parsing. 2022-11-21 12:43:56 +01:00
Bauke 2665ee3298
Add a regex redirect. 2022-11-02 11:10:29 +01:00
Bauke fe81eb53fa
Rewrite Redirect IDs to be numeric instead of UUIDs. 2022-10-27 21:13:02 +02:00
Bauke ed663484e2
Add enabled property to tests. 2022-10-26 14:55:04 +02:00
Bauke 696dd8fde8
Add regex matcher tests. 2022-10-21 00:14:58 +02:00
Bauke 93096b839a
Simplify Redirect to a basic abstract class.
Initially I was expecting the Redirect class to be more
complicated for more intricate functionality. But as
I've been adding the options UI, I think keeping it as
simple as possible will be better and easier to work with.
2022-10-20 16:22:57 +02:00
Bauke d25a844fac
Add an ID to Redirects. 2022-10-19 21:15:40 +02:00
Bauke e55c791386
Fix name. 2022-10-19 20:48:19 +02:00
Bauke 3fe297b8f1
Add tests for Redirect getters & setters. 2022-10-18 22:52:30 +02:00
Bauke 89751faad2
Update matching test for www. removal. 2022-10-18 22:24:59 +02:00
Bauke f261052331
Don't use type as a variable name as it is a TS keyword. 2022-10-18 22:21:55 +02:00
Bauke a4b12334c5
Add tests for narrowing match & redirect types. 2022-10-18 21:54:47 +02:00
Bauke 81669cc535
Update tests & snapshots with adjusted names. 2022-10-18 21:43:50 +02:00
Bauke 67a2c7567f
Add tests for SimpleRedirect. 2022-10-18 19:02:02 +02:00
Bauke b54d6ab0c2
Fix test typing. 2022-10-18 18:57:15 +02:00
Bauke 2ca4aeefb7
Make parseRedirect more resilient. 2022-10-13 00:30:26 +02:00
Bauke aa9a7121f8
Reduce duplication. 2022-10-13 00:23:32 +02:00
Bauke 814c718c41
Add Redirect.isMatch tests. 2022-10-13 00:21:46 +02:00
Bauke b9a56fe881
Update tests to include Matcher. 2022-10-13 00:05:10 +02:00
Bauke 8e96a55661
Add redirect base setup and tests. 2022-10-05 19:08:17 +02:00