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)
Tue, Dec 17, 8:05 PM
Unknown Object (File)
Sat, Dec 7, 1:31 PM
Unknown Object (File)
Nov 27 2024, 2:02 PM
Unknown Object (File)
Nov 27 2024, 1:00 AM
Unknown Object (File)
Nov 24 2024, 12:30 AM
Unknown Object (File)
Nov 23 2024, 12:42 PM
Unknown Object (File)
Nov 23 2024, 12:42 PM
Unknown Object (File)
Nov 23 2024, 12:42 PM
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