Page MenuHomePhabricator

D16061.diff
No OneTemporary

D16061.diff

diff --git a/src/utils/PhutilProseDifferenceEngine.php b/src/utils/PhutilProseDifferenceEngine.php
--- a/src/utils/PhutilProseDifferenceEngine.php
+++ b/src/utils/PhutilProseDifferenceEngine.php
@@ -86,6 +86,12 @@
$results[] = $result;
}
+ // If the input ended with a delimiter, we can get an empty final piece.
+ // Just discard it.
+ if (last($results) == '') {
+ array_pop($results);
+ }
+
return $results;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 8:55 AM (6 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739689
Default Alt Text
D16061.diff (455 B)

Event Timeline