Skip to content

Commit c271c81

Browse files
committed
Merge branch 'hotfix/doi-validation-improvement' into develop
2 parents 9c8a34a + 9b94832 commit c271c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/submit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const BasicsValidations = buildValidations({
3636
validators: [
3737
validator('format', {
3838
// Simplest regex- try not to diverge too much from the backend
39-
regex: /^10\.\S+\//,
39+
regex: /\b(10\.\d{4,}(?:\.\d+)*\/\S+(?:(?!["&\'<>])\S))\b/,
4040
allowBlank: true,
4141
message: 'Please use a valid {description}'
4242
})

0 commit comments

Comments
 (0)