Skip to main content
Maps input values to output values by matching their stringified form against an ordered list of regular expressions.

Configuration

  • rows is the ordered list of mapping rules. Each row carries a regex pattern, an output value, and the property type that the output value should be cast to.
  • fallback_row is the row used when no row in rows matches. If no fallback_row is configured either, the output for that input is nil.

Matching

For each input dated property, the value is converted with to_string/1 and matched against each row’s regex in order. The first match wins. The matched row’s output value is then cast to its declared property type before being emitted.

Ports