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
Mon, Oct 21, 4:48 PM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739689
Default Alt Text
D16061.diff (455 B)

Event Timeline