master
yaml 32 lines 687 Bytes
Raw
1 ---
2 # Variable substitution with unicode test
3 # Tests ${VAR} substitution with non-ASCII content
4
5 pattern: "(?P<type>\\w+): (?P<data>.*)"
6
7 inject:
8 - key: BASE_UNICODE
9 value: "Başlık: Türkçe içerik"
10 - key: EMOJI_VAR
11 value: "Status: Success 🎉"
12 - key: CHINESE_VAR
13 value: "测试数据: 中文内容"
14
15 filename:
16 key: FILENAME
17
18 rewrite:
19 - key: MESSAGE
20 match: 'user'
21 value: 'User=${data} with unicode: ${BASE_UNICODE}'
22 inject: yes
23
24 - key: MESSAGE
25 match: 'status'
26 value: '${EMOJI_VAR} - Final status: ${data}'
27 inject: yes
28
29 - key: MESSAGE
30 match: 'test'
31 value: '${CHINESE_VAR} - Test data: ${data}'
32 inject: yes