Mercurial > hg
diff i18n/check-translation.py @ 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 | 6afbfb9b1af1 |
children | 35c2ea4ca26f |