Alan Guo Xiang Tan
a6624af66e
DEV: Add isValidUrl
helper function to theme migrations ( #26817 )
...
This commit adds a `isValidUrl` helper function to the context in
which theme migrations are ran in. This helper function is to make it
easier for theme developers to check if a string is a valid URL or path
when writing theme migrations. This can be helpful in cases when
migrating a string based setting to `type: objects` which contain `type:
string` properties with URL validations enabled.
This commit also introduces the `UrlHelper.is_valid_url?` method
which actually checks that the URL string is of the valid format instead of
only checking if the URL string is parseable which is what `UrlHelper.relaxed_parse` does
and is not sufficient for our needs.
2024-04-30 16:45:07 +08:00
..
2023-01-09 12:10:19 +00:00
2024-04-12 13:14:19 +02:00
2024-04-19 18:47:30 +08:00
2023-12-15 23:46:04 +08:00
2024-01-08 15:41:00 -05:00
2022-04-28 11:51:03 +02:00
2023-12-06 13:16:10 +01:00
2024-03-14 18:50:09 +00:00
2023-12-06 23:25:00 +01:00
2023-12-06 23:25:00 +01:00
2023-10-11 14:36:54 -04:00
2024-04-30 08:15:07 +02:00
2023-02-16 10:47:01 +00:00
2023-02-20 06:20:47 +03:00
2023-09-06 02:14:57 +02:00
2023-12-06 23:25:00 +01:00
2024-01-24 18:50:42 -03:00
2024-04-24 10:19:12 +01:00
2024-01-25 10:45:46 +10:00
2024-03-22 08:12:12 +10:00
2023-12-06 23:25:00 +01:00
2023-12-06 23:25:00 +01:00
2023-12-15 23:46:04 +08:00
2023-12-06 13:18:34 +01:00
2023-05-19 10:59:04 +01:00
2024-04-29 09:05:32 +01:00
2023-12-15 23:46:04 +08:00
2024-03-04 15:12:08 -07:00
2024-04-26 14:04:03 +02:00
2024-02-13 13:20:24 +08:00
2023-01-09 12:10:19 +00:00
2023-09-06 10:57:30 +08:00
2024-02-07 13:47:50 -06:00
2024-03-14 14:40:46 -03:00
2024-01-30 10:32:42 +00:00
2024-01-31 19:40:30 -05:00
2023-12-06 23:25:00 +01:00
2024-02-19 10:47:47 +10:00
2024-03-15 14:24:11 +08:00
2024-04-05 12:12:59 -03:00
2024-04-29 10:34:46 +10:00
2024-04-25 16:39:22 +03:00
2023-12-06 23:25:00 +01:00
2024-01-10 13:33:30 +05:30
2024-04-03 14:00:47 +01:00
2024-04-19 18:47:30 +08:00
2023-12-07 16:33:38 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-07-24 09:37:18 +08:00
2023-05-25 14:53:59 +02:00
2023-01-09 12:10:19 +00:00
2024-04-19 18:47:30 +08:00
2023-11-01 16:46:13 +00:00
2020-04-30 16:48:53 +10:00
2023-01-27 12:28:47 +08:00
2021-05-21 11:43:47 +10:00
2023-01-05 08:43:58 +10:00
2024-02-29 09:03:49 +10:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2024-02-13 10:18:36 -05:00
2023-12-15 23:46:04 +08:00
2023-02-01 09:55:21 +00:00
2023-01-09 12:10:19 +00:00
2023-08-28 12:58:47 +08:00
2024-02-27 11:54:05 +01:00
2023-06-07 21:31:20 +03:00
2023-02-21 10:30:48 +01:00
2024-03-06 13:01:32 +00:00
2024-04-09 13:23:11 +10:00
2023-12-06 14:59:18 +08:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-10 22:38:52 +02:00
2023-01-09 12:10:19 +00:00
2024-03-20 14:02:12 +00:00
2023-12-15 23:46:04 +08:00
2021-06-14 20:34:44 +05:30
2023-01-20 12:52:49 -06:00
2023-08-02 18:44:19 -03:00
2024-02-25 10:42:50 +05:30
2024-04-08 10:27:40 +08:00
2024-04-08 10:27:40 +08:00
2024-02-01 11:48:31 +00:00
2023-01-09 12:10:19 +00:00
2024-03-28 14:00:47 +08:00
2023-06-16 12:44:35 +10:00
2023-01-09 12:10:19 +00:00
2024-03-27 12:57:10 +03:00
2024-04-02 20:04:37 +05:30
2024-02-12 16:27:24 -05:00
2024-04-19 18:47:30 +08:00
2023-01-09 12:10:19 +00:00
2024-02-21 14:19:04 -06:00
2022-04-05 19:29:58 +02:00
2023-03-01 08:58:32 +11:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2024-04-24 10:19:12 +01:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-07-28 11:47:22 -06:00
2023-08-23 11:18:33 +10:00
2023-01-09 12:10:19 +00:00
2022-01-21 17:54:18 +02:00
2023-08-23 11:18:33 +10:00
2023-01-09 12:10:19 +00:00
2023-12-15 23:46:04 +08:00
2021-11-11 12:21:25 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-08-02 10:46:37 +08:00
2023-06-26 10:09:57 +05:30
2023-01-25 18:55:01 +02:00
2023-01-20 12:52:49 -06:00
2023-05-31 19:32:06 +05:30
2024-04-23 09:52:01 -04:00
2023-12-06 13:18:34 +01:00
2024-02-26 13:45:58 +00:00
2024-02-07 13:47:50 -06:00
2024-04-02 11:05:08 -04:00
2024-04-02 11:05:08 -04:00
2023-01-20 12:52:49 -06:00
2024-01-31 10:23:09 +10:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-03-22 10:19:59 +10:00
2024-02-26 13:45:58 +00:00
2023-01-09 12:10:19 +00:00
2024-03-26 14:42:40 +01:00
2023-01-09 12:10:19 +00:00
2024-03-14 10:55:01 +08:00
2023-01-09 12:10:19 +00:00
2023-08-02 10:46:37 +08:00
2023-12-15 23:46:04 +08:00
2023-01-25 18:55:33 +02:00
2024-01-11 13:43:01 +10:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-11-09 13:39:18 +11:00
2024-01-22 15:25:29 -03:00
2023-01-09 12:10:19 +00:00
2023-04-11 10:16:28 +01:00
2023-04-05 17:00:05 +01:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-06-26 15:11:35 -03:00
2023-11-29 11:44:09 +00:00
2024-04-29 10:34:46 +10:00
2023-08-09 13:55:00 -04:00
2023-01-09 12:10:19 +00:00
2023-12-12 09:35:26 -05:00
2023-10-09 03:35:31 +00:00
2024-03-27 08:57:43 -04:00
2023-01-09 12:10:19 +00:00
2023-12-14 12:31:38 -07:00
2024-04-01 06:23:21 +08:00
2024-04-09 13:23:11 +10:00
2024-03-04 09:30:30 +11:00
2023-08-10 02:03:38 +02:00
2023-11-09 13:39:06 +11:00
2023-01-09 12:10:19 +00:00
2023-06-16 12:44:35 +10:00
2024-04-24 09:40:13 +01:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-12-04 11:36:42 +10:00
2023-01-09 12:10:19 +00:00
2024-01-10 19:30:10 -07:00
2023-01-09 12:10:19 +00:00
2023-09-04 16:09:52 +10:00
2023-11-10 09:50:23 +10:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2024-04-29 12:32:02 -03:00
2023-12-06 23:25:00 +01:00
2024-02-20 11:19:22 +10:00
2024-01-22 12:10:29 +01:00
2023-01-09 12:10:19 +00:00
2023-07-17 10:14:17 +10:00
2024-04-18 08:53:52 +10:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2024-04-04 00:22:28 +05:30
2024-04-04 10:57:41 -03:00
2023-01-09 12:10:19 +00:00
2024-04-19 18:47:30 +08:00
2023-06-07 22:51:24 +03:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2024-01-16 09:50:44 +08:00
2023-11-16 07:11:35 +08:00
2023-01-09 12:10:19 +00:00
2024-04-25 16:39:22 +03:00
2024-04-30 16:45:07 +08:00
2024-02-08 10:20:59 +08:00
2024-02-27 15:46:12 +08:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2024-03-27 12:56:21 +03:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-05-12 17:09:40 +03:00
2024-02-23 17:11:39 +11:00
2023-03-02 13:05:45 -03:00
2023-01-09 12:10:19 +00:00
2024-04-10 12:02:44 +10:00
2024-04-29 16:11:12 +02:00
2024-04-29 10:34:46 +10:00
2024-04-29 16:11:12 +02:00
2023-10-16 10:34:38 -04:00
2023-03-01 15:35:21 +11:00
2024-03-07 18:35:46 +00:00
2023-07-03 19:53:12 -03:00
2020-07-21 15:55:03 +08:00
2023-01-09 12:10:19 +00:00
2024-02-15 18:55:39 +03:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-06-06 15:47:40 +10:00
2024-04-09 13:23:11 +10:00
2024-04-30 16:45:07 +08:00
2023-07-03 10:18:37 +10:00
2023-01-09 12:10:19 +00:00
2023-12-04 13:45:19 +01:00
2023-01-09 12:10:19 +00:00
2024-04-04 11:59:29 +01:00
2023-10-24 13:22:55 -04:00
2024-02-07 13:47:50 -06:00
2023-10-19 14:37:37 -03:00