[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: fix validation regex
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: fix validation regex |
Date: |
Sat, 27 Mar 2021 02:51:27 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new edcdab0 fix validation regex
edcdab0 is described below
commit edcdab0c8bbcebf0c022dd75ea87b9ae5ac63c36
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Mar 27 02:51:24 2021 +0100
fix validation regex
---
contrib/redux.de.json | 2 +-
src/reducer/anastasis_api_redux.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/contrib/redux.de.json b/contrib/redux.de.json
index 4fad4d1..11e882f 100644
--- a/contrib/redux.de.json
+++ b/contrib/redux.de.json
@@ -51,7 +51,7 @@
},
"widget": "anastasis_gtk_ia_ssn_de",
"uuid": "d5e2aa79-1c88-4cf4-a4d2-252508b38e05",
- "validation-regex": "^d{12}$",
+ "validation-regex": "^[0-9]{8}[[:upper:]][0-9]{3}$",
"validation-logic": "DE_SVN_check"
}
]
diff --git a/src/reducer/anastasis_api_redux.c
b/src/reducer/anastasis_api_redux.c
index f55d444..8211b40 100644
--- a/src/reducer/anastasis_api_redux.c
+++ b/src/reducer/anastasis_api_redux.c
@@ -780,8 +780,9 @@ validate_regex (const char *input,
0))
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
- "Input `%s' does not match regex\n",
- input);
+ "Input `%s' does not match regex `%s'\n",
+ input,
+ regexp);
regfree (®ex);
return false;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: fix validation regex,
gnunet <=