From 90a0a8a2f6d01a9315553ca7be96900da57abbea Mon Sep 17 00:00:00 2001 From: gine Date: Mon, 15 Jun 2015 12:51:58 +0200 Subject: [PATCH] corretto il formato del fingerprint --- res/js/jq-idealforms-extend-validate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/res/js/jq-idealforms-extend-validate.js b/res/js/jq-idealforms-extend-validate.js index 7012c9f..36cdbf8 100644 --- a/res/js/jq-idealforms-extend-validate.js +++ b/res/js/jq-idealforms-extend-validate.js @@ -1,5 +1,5 @@ $.extend($.idealforms.rules, { - fingerprint : /^([ABCDEF0-9]{4}\ ){9}[ABCDEF0-9]{4}$/, + fingerprint : /^([ABCDEF0-9]{4}\ ){5}(\ )?([ABCDEF0-9]{4}\ ){4}[ABCDEF0-9]{4}$/, multiple2 : function(input, value) { return Number(value) % 2 == 0; }, @@ -20,7 +20,7 @@ $.extend($.idealforms.rules, { }); $.extend($.idealforms.errors,{ - fingerprint : 'Must be a valid gpg fingerprint (es. AB98-AF02-852A-24EA-A298-AF02-852A-23CA-AB98-AA02)', + fingerprint : 'Must be a valid gpg fingerprint (es. AB98 AF02 852A 24EA A298 AF02 852A 23CA AB98 AA02 or gpg -K --fingerprint format)', multiple2 : 'Must be a multiple of 2', emails : 'Must be a valid email(s) comma separated', -}); \ No newline at end of file +});