Skip to content

Commit ccb5caa

Browse files
authored
Merge pull request #1695 from microbiomedata/fix_doi_regex
Update doi regex to match schema
2 parents ef3a7a2 + 84515a5 commit ccb5caa

File tree

1 file changed

+1
-1
lines changed
  • web/src/views/SubmissionPortal/store

1 file changed

+1
-1
lines changed

web/src/views/SubmissionPortal/store/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function removeAwardDoi(i: number) {
195195
}
196196

197197
function checkDoiFormat(v: string) {
198-
const valid = /^(?:doi:)?10.\d{2,9}.*$/.test(v);
198+
const valid = /^(?:doi:)?10.\d{2,9}\/.*$/.test(v);
199199
return valid;
200200
}
201201

0 commit comments

Comments
 (0)