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)
Fri, May 2, 4:29 AM
Unknown Object (File)
Apr 25 2025, 9:48 PM
Unknown Object (File)
Apr 23 2025, 2:32 PM
Unknown Object (File)
Apr 16 2025, 12:08 PM
Unknown Object (File)
Apr 15 2025, 10:05 AM
Unknown Object (File)
Apr 6 2025, 2:23 PM
Unknown Object (File)
Apr 1 2025, 7:44 PM
Unknown Object (File)
Mar 23 2025, 1:06 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