Compare commits

..

2 Commits

Author SHA1 Message Date
rov
5d87efb88e Merge pull request 'fix(import): refine MangaDex ID validation logic in import dialog' (#8) from fix/manga-dex into main
All checks were successful
ci/woodpecker/push/pipeline Pipeline was successful
Reviewed-on: #8
2025-11-02 15:05:53 -03:00
c48b88ff61 fix(import): refine MangaDex ID validation logic in import dialog
All checks were successful
ci/woodpecker/push/pipeline Pipeline was successful
ci/woodpecker/pr/pipeline Pipeline was successful
2025-11-02 14:59:41 -03:00

View File

@ -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"],