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)
Feb 12 2024, 1:57 PM
Unknown Object (File)
Feb 3 2024, 6:18 PM
Unknown Object (File)
Feb 2 2024, 8:54 PM
Unknown Object (File)
Jan 25 2024, 2:53 AM
Unknown Object (File)
Dec 24 2023, 5:49 AM
Unknown Object (File)
Dec 21 2023, 11:35 PM
Unknown Object (File)
Dec 13 2023, 4:48 AM
Unknown Object (File)
Nov 30 2023, 2:23 AM
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