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
F15336489: D19162.id45902.diff
Sat, Mar 8, 7:06 PM
Unknown Object (File)
Wed, Feb 26, 12:05 PM
Unknown Object (File)
Mon, Feb 17, 8:48 PM
Unknown Object (File)
Sun, Feb 9, 5:35 AM
Unknown Object (File)
Sun, Feb 9, 5:35 AM
Unknown Object (File)
Sun, Feb 9, 5:35 AM
Unknown Object (File)
Feb 1 2025, 5:08 AM
Unknown Object (File)
Jan 28 2025, 5:45 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