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:
parent
21e80a635d
commit
ab589ab31d
1 changed files with 3 additions and 0 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue