This website works better with JavaScript.
Home
Help
Register
Sign In
fdik
/
yml2
Watch
5
Star
1
Fork
0
Code
Issues
2
Pull Requests
1
Releases
12
Wiki
Activity
Browse Source
adding abbr() function
master
Volker Birk
9 months ago
parent
1db776f2a5
commit
99a683e07f
1 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-0
yml2/standardlib.ysl2
+ 6
- 0
yml2/standardlib.ysl2
View File
@ -73,3 +73,9 @@ def "yml:CamelCase" {
result "str:concat($capit)";
}
def "yml:abbr" {
param "text", "''";
const "tokens", "str:tokenize($text, '_')";
const "first" for "$tokens" value "substring(.,1,1)";
result "str:concat($first)";
}
Write
Preview
Loading…
Cancel
Save