Skip to content

Commit

Permalink
fix: handle lower case char in doi
Browse files Browse the repository at this point in the history
  • Loading branch information
Chloe070196 committed Dec 4, 2024
1 parent 064007a commit 45e09f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/web/Drivers/LibKeyDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public function extractDoi(string $url): string {
return $doi;
}
public function containsDoi(string $url): bool {
return preg_match('/10.\d{4,9}\/[-._;()\/:A-Z0-9]/', $url);
return preg_match('/10.\d{4,9}\/[-._;()\/:A-Za-z0-9]/', $url);
}
}

0 comments on commit 45e09f0

Please sign in to comment.