about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--edit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/edit.c b/edit.c
index 7401a3c..6dbff8a 100644
--- a/edit.c
+++ b/edit.c
@@ -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 {