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
Unknown Object (File)
Apr 10 2026, 6:18 PM
Unknown Object (File)
Apr 6 2026, 3:04 AM
Unknown Object (File)
Mar 29 2026, 3:45 AM
Unknown Object (File)
Mar 28 2026, 6:59 PM
Unknown Object (File)
Feb 7 2026, 5:34 PM
Unknown Object (File)
Dec 5 2025, 3:26 AM
Unknown Object (File)
Dec 4 2025, 9:38 AM
Unknown Object (File)
Dec 4 2025, 5:19 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