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
F15467150: D7732.diff
Thu, Apr 3, 1:09 PM
F15388893: D7732.id.diff
Sat, Mar 15, 4:35 AM
Unknown Object (File)
Mar 1 2025, 2:38 PM
Unknown Object (File)
Feb 10 2025, 11:48 PM
Unknown Object (File)
Feb 10 2025, 10:00 PM
Unknown Object (File)
Feb 9 2025, 10:46 AM
Unknown Object (File)
Feb 9 2025, 10:46 AM
Unknown Object (File)
Feb 9 2025, 10:46 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