Browse Source

adding mixedCase()

python3
Volker Birk 5 years ago
parent
commit
54648171f4
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      standardlib.ysl2

+ 6
- 0
standardlib.ysl2 View File

@ -53,3 +53,9 @@ def "yml:ucase" {
param "text", "''";
result "translate($text, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')";
}
def "yml:mixedCase" {
param "text", "''";
result "concat(yml:lcase(substring($text,1,1)),substring($text,2))";
}

Loading…
Cancel
Save