mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 00:42:40 +01:00
Disallow using DD1 as revision ID
Test Plan: $ arc inlines --revision 1 $ arc inlines --revision D1 $ arc inlines --revision DD1 Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3811
This commit is contained in:
parent
448e820eb6
commit
2d226f3110
1 changed files with 1 additions and 1 deletions
|
@ -954,7 +954,7 @@ abstract class ArcanistBaseWorkflow {
|
|||
}
|
||||
|
||||
protected function normalizeRevisionID($revision_id) {
|
||||
return ltrim(strtoupper($revision_id), 'D');
|
||||
return preg_replace('/^D/i', '', $revision_id);
|
||||
}
|
||||
|
||||
protected function shouldShellComplete() {
|
||||
|
|
Loading…
Reference in a new issue