diff options
Diffstat (limited to 'edit.c')
-rw-r--r-- | edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -259,13 +259,13 @@ static const char *checkSize(const char *value) { } static const char *checkHash(const char *value) { - // TODO - return NULL; + if (!value) return "requires a value"; + return (value[0] != '$' ? "must be hashed" : NULL); } static const char *checkPair(const char *value) { - // TODO - return NULL; + if (!value) return "requires a value"; + return (strchr(value, ':') ? NULL : "must be colon-separated"); } static const struct { |