Page MenuHomePhabricator

D8101.diff
No OneTemporary

D8101.diff

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

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)

Event Timeline