Page MenuHomePhabricator

Markup project hashtags which begin with (or contain only) digits
ClosedPublic

Authored by epriestley on Nov 23 2015, 1:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 11:40 PM
Unknown Object (File)
Thu, Apr 11, 9:28 AM
Unknown Object (File)
Tue, Apr 9, 3:57 PM
Unknown Object (File)
Wed, Apr 3, 7:56 AM
Unknown Object (File)
Wed, Apr 3, 6:30 AM
Unknown Object (File)
Tue, Apr 2, 5:18 AM
Unknown Object (File)
Mar 21 2024, 9:57 AM
Unknown Object (File)
Mar 10 2024, 6:41 AM
Subscribers
None

Details

Summary

Fixes T9832. We currently refuse to recognize project hashtags in remarkup if they begin with a digit. This is motivated by attempting to not recognize them if they contain only digits.

I don't think we really gain anything by this. Although most #123 in text are probably not project references, the cost of doing a lookup for them is quite small, and some of them are.

In cases where users use #123 to refer to tasks in an external system, they can use a rule for that with higher precedence than this one or not give their projects conflicting hashtags.

Test Plan
  • This is well-covered by unit tests.
  • Referenced a #3u1, per T9832.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley updated this revision to Diff 35185.
epriestley retitled this revision from to Markup project hashtags which begin with (or contain only) digits.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
  • Rename a variable for clarity.
chad edited edge metadata.
This revision is now accepted and ready to land.Nov 23 2015, 2:37 PM
This revision was automatically updated to reflect the committed changes.