fix(import): refine MangaDex ID validation logic in import dialog
This commit is contained in:
parent
6ee1fbbd8c
commit
c48b88ff61
@ -38,8 +38,9 @@ export const MangaDexImportDialog = ({
|
||||
})
|
||||
.refine(
|
||||
(data: { value: string }) =>
|
||||
(data.value.length > 36 &&
|
||||
!data.value.match(/title\/([0-9a-fA-F-]{36})/)) && data.value.length !== 36,
|
||||
data.value.length > 36 &&
|
||||
!data.value.match(/title\/([0-9a-fA-F-]{36})/) &&
|
||||
data.value.length !== 36,
|
||||
{
|
||||
message: "Invalid MangaDex ID or URL",
|
||||
path: ["value"],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user