mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
module/clock: user can now specify the date/time format strings
This commit is contained in:
parent
9037aadd04
commit
7fc9749c28
4 changed files with 33 additions and 8 deletions
|
@ -313,7 +313,14 @@ verify_module_clock(keychain_t *chain, const struct yml_node *node)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (strcmp(key, "content") == 0) {
|
||||
if (strcmp(key, "date-format") == 0 ||
|
||||
strcmp(key, "time-format") == 0)
|
||||
{
|
||||
if (!verify_string(chain_push(chain, key), it.value))
|
||||
return false;
|
||||
}
|
||||
|
||||
else if (strcmp(key, "content") == 0) {
|
||||
if (!verify_particle(chain_push(chain, key), it.value))
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue