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
F18749332: D7732.id.diff
Sat, Oct 4, 3:23 AM
F18745778: D7732.diff
Fri, Oct 3, 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
F18015843: D7732.id17465.diff
Aug 2 2025, 6:01 PM
F17953706: D7732.id.diff
Aug 1 2025, 3:22 AM
F17944392: D7732.diff
Jul 31 2025, 9:59 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