master
yaml 32 lines 745 Bytes
Raw
1 ---
2 # Complex multiline YAML constructs test
3 # Tests folded scalars, literal scalars, complex quoting
4
5 pattern: "(?P<data>.*)"
6
7 inject:
8 - key: MULTILINE_FOLDED
9 value: >
10 This is a folded scalar that
11 should be joined into a single
12 line with spaces replacing newlines.
13
14 - key: MULTILINE_LITERAL
15 value: |
16 This is a literal scalar
17 that preserves exact formatting
18 including newlines and spacing.
19
20 - key: COMPLEX_QUOTES
21 value: "Single quotes with 'embedded singles' and \"escaped doubles\""
22
23 - key: YAML_SPECIAL
24 value: "Contains: colons, [brackets], {braces}, and | pipes"
25
26 filename:
27 key: FILENAME
28
29 rewrite:
30 - key: MESSAGE
31 value: 'Processed: ${data}'
32 inject: yes