Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15625156
D8101.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
825 B
Referenced Files
None
Subscribers
None
D8101.diff
View Options
Index: src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php
===================================================================
--- src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php
+++ src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php
@@ -83,12 +83,16 @@
$pattern =
'@'.
'(?<!/)(?:^|\b)'.
- '(r[A-Z]+[0-9a-z]{1,40})'.
+ '(r[A-Z]+)([0-9a-z]{0,40})'.
'(?:\b|$)'.
'@';
if (preg_match_all($pattern, $message, $matches, PREG_SET_ORDER)) {
foreach ($matches as $match) {
- $commit_names[] = $match[1];
+ if ($match[2]) {
+ $commit_names[] = $match[1].$match[2];
+ } else {
+ $object_names[] = $match[1];
+ }
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 19, 4:29 AM (17 h, 26 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8004932
Default Alt Text
D8101.diff (825 B)
Attached To
Mode
D8101: phabot pickup repository objects
Attached
Detach File
Event Timeline
Log In to Comment