Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14002125
D15049.id36344.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.id36344.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
Sat, Oct 26, 3:28 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719107
Default Alt Text
D15049.id36344.diff (1 KB)
Attached To
Mode
D15049: Fix two issues with repository monogram regular expressions
Attached
Detach File
Event Timeline
Log In to Comment