Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine definition of extra metadata tags
Fix potential ambiguities or issues with extra metadata: 1. original rules disallowed colons in `value`. This is unnecessarily restrictive: everything is whitespace separated, so allowing colons in the value of extra metadata does not introduce any ambiguity in parsing. This allows extra metadata like `key:val:ue` to be correctly parsed as the key `key` and value `val:ue`. 2. Make it clear than the value may be empty. This was previously not defined. Allowing an empty value is also syntactically unambiguous, so this should be fine. This allows an extra metadata entry like `key:`, where the key is `key` and the value is an empty string. 3. Make it clear that the key must not be empty. This was previously not defined. It does not make sense for there to be an extra metadata where the key is an empty string. As such, entries such as `:` or `:something` must not be parsed as extra metadata tags.
- Loading branch information