Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14007625
D15049.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15049.id.diff
View Options
diff --git a/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php b/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
--- a/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
+++ b/src/applications/repository/phid/PhabricatorRepositoryRepositoryPHIDType.php
@@ -48,7 +48,7 @@
}
public function canLoadNamedObject($name) {
- return preg_match('/^r[A-Z]+|R[1-9]\d*\z/', $name);
+ return preg_match('/^(r[A-Z]+|R[1-9]\d*)\z/', $name);
}
public function loadNamedObjects(
diff --git a/src/applications/repository/query/PhabricatorRepositoryQuery.php b/src/applications/repository/query/PhabricatorRepositoryQuery.php
--- a/src/applications/repository/query/PhabricatorRepositoryQuery.php
+++ b/src/applications/repository/query/PhabricatorRepositoryQuery.php
@@ -65,7 +65,7 @@
continue;
}
- if (preg_match('/^(r[A-Z]+)|(R[1-9]\d*)\z/', $identifier)) {
+ if (preg_match('/^(r[A-Z]+|R[1-9]\d*)\z/', $identifier)) {
$monograms[$identifier] = $identifier;
continue;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 30, 9:07 AM (3 w, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719107
Default Alt Text
D15049.id.diff (1 KB)
Attached To
Mode
D15049: Fix two issues with repository monogram regular expressions
Attached
Detach File
Event Timeline
Log In to Comment