Page MenuHomePhabricator

Fix over-matching of quoted text for message bodies beginning with "On..."
ClosedPublic

Authored by epriestley on Dec 6 2013, 11:41 PM.
Tags
None
Referenced Files
F19101647: D7732.id.diff
Fri, Dec 5, 3:26 AM
F19096343: D7732.diff
Thu, Dec 4, 9:38 AM
F19095507: D7732.diff
Thu, Dec 4, 5:19 AM
F18749332: D7732.id.diff
Oct 4 2025, 3:23 AM
F18745778: D7732.diff
Oct 3 2025, 9:21 AM
F18590710: D7732.id.diff
Sep 12 2025, 6:55 AM
F18453345: D7732.id.diff
Sep 1 2025, 3:32 AM
F18434677: D7732.diff
Aug 31 2025, 9:32 AM
Subscribers

Details

Summary

A user sent a message to Phabricator which looked like:

On blah blah blah ?

On <date>, <user> wrote:
> blah blah blah

The current algorithm is too aggressive and thinks lines 1-3 are all the "On ... wrote:" string. Instead, patch only the most recent "On".

Test Plan

Added a failing test and made it pass.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

literally only read the test code