Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14008450
D16061.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
455 B
Referenced Files
None
Subscribers
None
D16061.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 30, 9:53 PM (2 w, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739689
Default Alt Text
D16061.diff (455 B)
Attached To
Mode
D16061: Slightly improve prose diffs for text ending in newlines or punctuation
Attached
Detach File
Event Timeline
Log In to Comment