Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/remarkup/ProjectRemarkupRule.php
Show All 26 Lines | protected function getObjectIDPattern() { | ||||
// Broadly, this will not match every possible project monogram, and we | // Broadly, this will not match every possible project monogram, and we | ||||
// accept some false negatives -- like `#dot.` -- in order to avoid a bunch | // accept some false negatives -- like `#dot.` -- in order to avoid a bunch | ||||
// of false positives on general use of the `#` character. | // of false positives on general use of the `#` character. | ||||
// In other contexts, the PhabricatorProjectProjectPHIDType pattern is | // In other contexts, the PhabricatorProjectProjectPHIDType pattern is | ||||
// controlling and these names should parse correctly. | // controlling and these names should parse correctly. | ||||
// These characters may never appear anywhere in a hashtag. | // These characters may never appear anywhere in a hashtag. | ||||
$never = '\s?!,:;{}#\\(\\)"\''; | $never = '\s?!,:;{}#\\(\\)"\'\\*/~'; | ||||
epriestley: These are for `**bold**`, `//italics//` and `~~strikethru~~`. | |||||
// These characters may not appear at the edge of the string. | // These characters may not appear at the edge of the string. | ||||
$never_edge = '.'; | $never_edge = '.'; | ||||
return | return | ||||
'[^'.$never_edge.$never.']+'. | '[^'.$never_edge.$never.']+'. | ||||
'(?:'. | '(?:'. | ||||
'[^'.$never.']*'. | '[^'.$never.']*'. | ||||
Show All 31 Lines |
These are for **bold**, //italics// and ~~strikethru~~.