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, Jul 2, 4:24 PM
Unknown Object (File)
Jan 15 2026, 4:57 PM
Unknown Object (File)
Oct 18 2025, 9:01 PM
Unknown Object (File)
Oct 18 2025, 8:51 AM
Unknown Object (File)
Oct 6 2025, 10:10 PM
Unknown Object (File)
Sep 11 2025, 5:26 AM
Unknown Object (File)
Sep 10 2025, 7:59 AM
Unknown Object (File)
Sep 9 2025, 2:49 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
Branch
harbor1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19711
Build 26696: Run Core Tests
Build 26695: arc lint + arc unit