Skip to content

Commit ec45fef

Browse files
committed
update label rule
Signed-off-by: Jimmy Tanagra <[email protected]>
1 parent c014df6 commit ec45fef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

configuration/yaml/variables.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ Formats an identifier into a human‑friendly label.
192192
##### Behavior
193193

194194
- Splits words on whitespace, hyphens (`-`), underscores (`_`), and repeated separators.
195-
- Splits camelCase only when an uppercase letter is followed by a lowercase letter
196-
(`fooBar` → `Foo Bar`, `openHab` → `Open Hab`, but `openHAB` → `OpenHAB`).
195+
- Splits camelCase and PascalCase
196+
(`powerGrid` → `Power Grid`, `LivingRoom` → `Living Room`, `StatusLED` → `Status LED`).
197197
- Collapses multiple spaces and title‑cases the resulting words.
198198
- Leaves fully uppercase inputs unchanged (`FOOBAR` → `FOOBAR`).
199199

@@ -209,7 +209,7 @@ ${ "foo bar" | label } → "Foo Bar"
209209
${ "fooBar" | label } → "Foo Bar"
210210
${ "foo-bar_baz" | label } → "Foo Bar Baz"
211211
${ "multiple---separators___here" | label } → "Multiple Separators Here"
212-
${ "openHAB" | label } → "OpenHAB"
212+
${ "StatusLED" | label } → "Status LED"
213213
```
214214

215215
For a complete list of built-in filters, see the Jinja documentation:

0 commit comments

Comments
 (0)