We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c8a34a + 9b94832 commit c271c81Copy full SHA for c271c81
app/controllers/submit.js
@@ -36,7 +36,7 @@ const BasicsValidations = buildValidations({
36
validators: [
37
validator('format', {
38
// Simplest regex- try not to diverge too much from the backend
39
- regex: /^10\.\S+\//,
+ regex: /\b(10\.\d{4,}(?:\.\d+)*\/\S+(?:(?!["&\'<>])\S))\b/,
40
allowBlank: true,
41
message: 'Please use a valid {description}'
42
})
0 commit comments