Custom regex

OliveTin version 2024.02.081 and above support custom regex patterns for argument types. Here is an example to validate against any 3 letter word;

Note
The regex pattern should be enclosed in single quotes, otherwise you will probably get a YAML error when starting OliveTin.
config.yaml
actions:
  - title: echo a message
    icon: smile
    shell: echo "{{ message }}"
    arguments:
      - name: message
        type: 'regex:^\w\w\w$'

The site http://regex101.com is a good place to test your regex patterns.