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)
Tue, Dec 31, 8:27 PM
Unknown Object (File)
Tue, Dec 31, 7:16 PM
Unknown Object (File)
Wed, Dec 18, 3:19 AM
Unknown Object (File)
Dec 11 2024, 2:14 PM
Unknown Object (File)
Dec 10 2024, 6:31 PM
Unknown Object (File)
Dec 7 2024, 11:31 AM
Unknown Object (File)
Dec 4 2024, 12:31 AM
Unknown Object (File)
Dec 2 2024, 11:12 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