1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01:00

Restore "%d" support to "tsprintf()"

Summary: Ref T13490. I recently made "tsprintf()" more strict, but we do sometimes use "%d" and this is reasonable to support.

Test Plan: Ran "arc branch".

Maniphest Tasks: T13490

Differential Revision: https://secure.phabricator.com/D21098
This commit is contained in:
epriestley 2020-04-13 04:30:52 -07:00
parent 21e80a635d
commit ab589ab31d

View file

@ -48,6 +48,9 @@ function xsprintf_terminal($userdata, &$pattern, &$pos, &$value, &$length) {
$value = PhutilTerminalString::escapeStringValue($value, false); $value = PhutilTerminalString::escapeStringValue($value, false);
$type = 's'; $type = 's';
break; break;
case 'd':
$type = 'd';
break;
default: default:
throw new Exception( throw new Exception(
pht( pht(