mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 13:52:40 +01:00
Disallow "{", "}" and "#" in Project monograms
Summary: Currently, mentioning two projects in a block (`{#a} {#b}`) produces an overzealous parse. Forbid these characters in project monograms. Test Plan: Got correct markup. Reviewers: btrahan, dctrwatson, chad Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D8141
This commit is contained in:
parent
0726411cb4
commit
980f06f3da
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ final class PhabricatorProjectPHIDTypeProject extends PhabricatorPHIDType {
|
|||
// NOTE: This explicitly does not match strings which contain only
|
||||
// digits, because digit strings like "#123" are used to reference tasks at
|
||||
// Facebook and are somewhat conventional in general.
|
||||
return '[^\s.!,:;]*[^\s\d.!,:;]+[^\s.!,:;]*';
|
||||
return '[^\s.!,:;{}#]*[^\s\d.!,:;{}#]+[^\s.!,:;{}#]*';
|
||||
}
|
||||
|
||||
public function canLoadNamedObject($name) {
|
||||
|
|
Loading…
Reference in a new issue