Configuration
- Rows — ordered mapping rules. Each row has a regex pattern, an output value, and the type the output should be cast to.
- Fallback row — used when no row matches. Without one, unmatched inputs produce nothing.
- Empty (nil) input — what an entry with no value means. Use the fallback row treats it as the empty string, so it matches no row and lands on the fallback. Pass through unchanged keeps the entry as it is, without consulting the rows.
Tips
- Rules are tried in order — put more specific patterns above broader catch-alls.
- Inputs are stringified before matching, so number and date inputs work
too. Use
^...$anchors when you want exact matches. - A row with an empty pattern is ignored, so a blank row left mid-edit won’t match everything (or break the node).
- An entry with no value usually marks where a timeline stops carrying one. Mapping it onto the fallback invents a value at that date — pick Pass through unchanged when the gap is meaningful.