Page MenuHomePhabricator

Move Paste line range reading code into AphrontRequest
ClosedPublic

Authored by epriestley on Mar 1 2018, 2:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 3:40 PM
Unknown Object (File)
Sun, Nov 17, 6:58 AM
Unknown Object (File)
Tue, Nov 12, 10:03 PM
Unknown Object (File)
Fri, Nov 8, 7:19 PM
Unknown Object (File)
Tue, Nov 5, 3:43 AM
Unknown Object (File)
Mon, Nov 4, 11:48 AM
Unknown Object (File)
Fri, Nov 1, 9:24 PM
Unknown Object (File)
Fri, Nov 1, 8:38 PM
Subscribers
None

Details

Summary

Ref T13088. This lifts the code for parsing "$x-y" line ranges in URIs into AphrontRequest so Diffusion, Paste, Harbormaster, etc., can share it.

Test Plan

Viewed lines, line ranges, no lines, negative line ranges, line ranges with 0, and extremely long line ranges in Paste.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable