Mercurial > hg
comparison .hgtags @ 21821:4a445dc5abff
templater: introduce startswith function
This function returns a string only if it starts with a given string.
It is particularly useful when combined with splitlines and/or used with
conditionals that fail when empty strings are passed in to take action
based on the contents of a line.
author | Ryan McElroy <rmcelroy@fb.com> |
---|---|
date | Thu, 12 Jun 2014 17:53:37 -0700 |
parents | 570749e2746c |
children | 0cc5187b95bc |
comparison
equal
deleted
inserted
replaced
21820:cce404b0c918 | 21821:4a445dc5abff |
---|