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:
@@ -45,7 +45,7 @@ final class PhabricatorProjectPHIDTypeProject extends PhabricatorPHIDType {
|
|||||||
// NOTE: This explicitly does not match strings which contain only
|
// NOTE: This explicitly does not match strings which contain only
|
||||||
// digits, because digit strings like "#123" are used to reference tasks at
|
// digits, because digit strings like "#123" are used to reference tasks at
|
||||||
// Facebook and are somewhat conventional in general.
|
// Facebook and are somewhat conventional in general.
|
||||||
return '[^\s.!,:;]*[^\s\d.!,:;]+[^\s.!,:;]*';
|
return '[^\s.!,:;{}#]*[^\s\d.!,:;{}#]+[^\s.!,:;{}#]*';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function canLoadNamedObject($name) {
|
public function canLoadNamedObject($name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user