Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14379314
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
Sun, Dec 22, 2:45 AM (20 h, 25 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6917131
Default Alt Text
D8101.diff (825 B)
Attached To
Mode
D8101: phabot pickup repository objects
Attached
Detach File
Event Timeline
Log In to Comment