Differential D14924 Diff 36062 src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | foreach ($handles as $phid => $handle) { | ||||
$handle->setName($monogram); | $handle->setName($monogram); | ||||
$handle->setFullName("{$monogram} {$name}"); | $handle->setFullName("{$monogram} {$name}"); | ||||
$handle->setURI($uri); | $handle->setURI($uri); | ||||
} | } | ||||
} | } | ||||
public function canLoadNamedObject($name) { | public function canLoadNamedObject($name) { | ||||
return preg_match('/^r[A-Z]+|R[0-9]+$/', $name); | return preg_match('/^r[A-Z]+|R[1-9]\d*\z/', $name); | ||||
} | } | ||||
public function loadNamedObjects( | public function loadNamedObjects( | ||||
PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
array $names) { | array $names) { | ||||
$results = array(); | $results = array(); | ||||
$id_map = array(); | $id_map = array(); | ||||
Show All 24 Lines |