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)
Wed, Dec 18, 3:19 AM
Unknown Object (File)
Wed, Dec 11, 2:14 PM
Unknown Object (File)
Tue, Dec 10, 6:31 PM
Unknown Object (File)
Sat, Dec 7, 11:31 AM
Unknown Object (File)
Wed, Dec 4, 12:31 AM
Unknown Object (File)
Mon, Dec 2, 11:12 PM
Unknown Object (File)
Fri, Nov 29, 4:19 AM
Unknown Object (File)
Thu, Nov 28, 1:33 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