rougail-output-doc/tests/docs/base/00_6regexp.adoc

33 lines
609 B
Text
Raw Normal View History

== dictionaries/rougail/00-base.yml
[,yaml]
----
---
version: '1.1'
var:
description: a first variable
regexp: ^#(?:[0-9a-f]{3}){1,2}$
default: '#a1a1a1'
test:
- '#b1b1b1'
- '#b2b2b2'
----
2024-11-15 08:13:45 +01:00
== Variables for "Rougail"
[cols="1a,1a"]
|====
2024-11-15 08:13:45 +01:00
| Variable | Description
|
2024-11-15 08:13:45 +01:00
**rougail.var** +
2024-11-15 08:13:45 +01:00
`https://rougail.readthedocs.io/en/latest/variable.html#variables-types[regexp]` `standard` `mandatory` |
A first variable. +
2024-11-15 08:13:45 +01:00
**Validator**: text based with regular expressions "^#(?:[0-9a-f]{3}){1,2}$" +
**Default**: #a1a1a1 +
2024-11-15 08:13:45 +01:00
**Examples**:
2024-11-15 08:13:45 +01:00
* '#b1b1b1'
* '#b2b2b2'
|====