Skip to content

key-value pairs starting with numerics #77

Open
@clach04

Description

@clach04

Came up in #69 from @xsrvmy

Can/should keys be allowed to start with a number, i.e. 0-9? Current spec https://github.com/todotxt/todo.txt#additional-file-format-definitions implies this is currently allowed:

Developers should use the format key:value to define additional metadata (e.g. due:2010-01-02 as a due date).

Both key and value must consist of non-whitespace characters, which are not colons. Only one colon separates the key and value.

@rachmadaniHaryono recommends against using numbers which I concur with. However I'd go as far as saying the spec needs clarification here as this conflicts with how most people write times down, e.g. 11:00am doesn't seem to me to be a useful key of "11" and value of "00am".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions