File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
215215For a complete list of built-in filters, see the Jinja documentation :
You can’t perform that action at this time.
0 commit comments