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
F19517986: D19162.diff
Jan 15 2026, 4:57 PM
F18806679: D19162.diff
Oct 18 2025, 9:01 PM
F18804492: D19162.id.diff
Oct 18 2025, 8:51 AM
F18763021: D19162.diff
Oct 6 2025, 10:10 PM
F18581252: D19162.id45902.diff
Sep 11 2025, 5:26 AM
F18573083: D19162.diff
Sep 10 2025, 7:59 AM
F18566683: D19162.id.diff
Sep 9 2025, 2:49 PM
F18502288: D19162.diff
Sep 4 2025, 10:20 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