Page MenuHomePhabricator

Make `#` header detection more strict
ClosedPublic

Authored by epriestley on Aug 5 2014, 4:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 16, 9:23 PM
Unknown Object (File)
Jul 12 2026, 9:41 AM
Unknown Object (File)
Jun 27 2026, 3:13 AM
Unknown Object (File)
Apr 22 2026, 8:42 AM
Unknown Object (File)
Apr 21 2026, 10:23 PM
Unknown Object (File)
Apr 21 2026, 12:59 PM
Unknown Object (File)
Apr 12 2026, 2:47 AM
Unknown Object (File)
Mar 30 2026, 8:16 PM
Subscribers

Details

Summary

Ref T5102. Require a space after a single # at the beginning of a line to possibly trigger header behavior.

This prevents conflicts with #projects and some normal text beginning with #.

Test Plan

Added unit test.

Diff Detail

Repository
rPHU libphutil
Branch
headercons
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 2046
Build 2047: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Make `#` header detection more strict.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Aug 5 2014, 4:18 PM
epriestley updated this revision to Diff 24420.

Closed by commit rPHU25c1599e34e0 (authored by @epriestley).