Skip to content

Commit 84515a5

Browse files
author
James Tessmer
committed
update regex for doi to enforce / character
1 parent 43dabd4 commit 84515a5

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)