{
onBlur={ this.updateCountryInfo(fields, index)('decimalLongitude') }
validate={ [ Validators.decimalNumber ] }
/>
+
+
)) }
diff --git a/src/utilities/Validators.ts b/src/utilities/Validators.ts
index 17bed5849ea5b10ebc03a9d4e3d0566f749e81ae..72bc6c6c083c4cf7bdfc91015d49b777ffd7b0a5 100644
--- a/src/utilities/Validators.ts
+++ b/src/utilities/Validators.ts
@@ -11,4 +11,5 @@ export default class Validators {
public static emailAddress = (value) => !value || value.match(/^[\w\d\-\+\._]+@[\w\d\-_]+(\.[\w\d\-_]+)*$/g) ? undefined : 'Invalid email address';
public static phoneNumber = (value) => !value || value.match(/^\+[\d\-\. ]+( ext\. \d+)?$/gi) ? undefined : 'Invalid number format: only digits and + . - allowed';
public static url = (value) => !value || value.match(/^(\w+:)\/\//g) ? undefined : 'Invalid URL';
+ public static mcpdDate = (value) => !value || value.match('^(?:(?:[1-9]\\d{3})|(?:----)|(?:0000))(?:--|(?:0[0-9])|(?:1[0-2]))(?:--|(?:0[0-9])|(?:[1-2][0-9])|(?:3[0-1]))$') ? undefined : 'Invalid date';
}