Library globals

Function globals . string . truncateAt

View source

truncate at the first match

string.truncateAt("file.xml", ".xml");                      # "file.xml" -> "file"
string.truncateAt("file.xml", ".txt");                      # "file.xml" -> "file.xml"

Parameters

src

match