1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/diffusion/remarkup
epriestley fa943f744b Stop all object mentions from matching after "@"
Summary:
Fixes T9479. Currently, `@aaaaaaaa` may try to match as a commit hash, and `@C123456` may try to match as a Countdown reference. These should only match as user mentions.

Prevent object mention rules from matching after `@`. We already prevent them after `-` and `#`, and already prevented the username rule after `@` (i.e., preventing `@@user`).

Test Plan:
Created some "interesting" users locally and `@mentioned` them:

{F850779}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9479

Differential Revision: https://secure.phabricator.com/D14186
2015-09-29 06:43:49 -07:00
..
__tests__ Stop all object mentions from matching after "@" 2015-09-29 06:43:49 -07:00
DiffusionCommitRemarkupRule.php make repo callsigns optional 2015-01-01 08:07:26 -08:00
DiffusionRepositoryByIDRemarkupRule.php make repo callsigns optional 2015-01-01 08:07:26 -08:00
DiffusionRepositoryRemarkupRule.php make repo callsigns optional 2015-01-01 08:07:26 -08:00