Fix route issue for manga pages
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/head This commit looks good
This commit is contained in:
parent
8e7273fa18
commit
752b3fb0e2
@ -19,7 +19,8 @@ use const Aviat\AnimeClient\{
|
|||||||
DEFAULT_CONTROLLER,
|
DEFAULT_CONTROLLER,
|
||||||
DEFAULT_CONTROLLER_METHOD,
|
DEFAULT_CONTROLLER_METHOD,
|
||||||
NUM_PATTERN,
|
NUM_PATTERN,
|
||||||
SLUG_PATTERN
|
SLUG_PATTERN,
|
||||||
|
SLUG_SPACE_PATTERN,
|
||||||
};
|
};
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@ -291,7 +292,7 @@ $routes = [
|
|||||||
'action' => 'edit',
|
'action' => 'edit',
|
||||||
'tokens' => [
|
'tokens' => [
|
||||||
'id' => SLUG_PATTERN,
|
'id' => SLUG_PATTERN,
|
||||||
'status' => '([a-zA-Z\-_]|%20)+',
|
'status' => SLUG_SPACE_PATTERN,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'list' => [
|
'list' => [
|
||||||
|
@ -28,6 +28,7 @@ const USER_AGENT = "Tim's Anime Client/5.2";
|
|||||||
const ALPHA_SLUG_PATTERN = '[a-z_]+';
|
const ALPHA_SLUG_PATTERN = '[a-z_]+';
|
||||||
const NUM_PATTERN = '[0-9]+';
|
const NUM_PATTERN = '[0-9]+';
|
||||||
const SLUG_PATTERN = '[a-z0-9\-]+';
|
const SLUG_PATTERN = '[a-z0-9\-]+';
|
||||||
|
const SLUG_SPACE_PATTERN = '[a-zA-Z_\- ]+';
|
||||||
|
|
||||||
// Why doesn't this already exist?
|
// Why doesn't this already exist?
|
||||||
const MILLI_FROM_NANO = 1000 * 1000;
|
const MILLI_FROM_NANO = 1000 * 1000;
|
||||||
|
Loading…
Reference in New Issue
Block a user