Page MenuHomePhorge

D25838.1734105194.diff
No OneTemporary

D25838.1734105194.diff

diff --git a/src/applications/project/remarkup/ProjectRemarkupRule.php b/src/applications/project/remarkup/ProjectRemarkupRule.php
--- a/src/applications/project/remarkup/ProjectRemarkupRule.php
+++ b/src/applications/project/remarkup/ProjectRemarkupRule.php
@@ -39,14 +39,14 @@
// These characters may not appear at the edge of the string.
$never_edge = '.';
- return
- '[^'.$never_edge.$never.']+'.
- '(?:'.
- '[^'.$never.']*'.
- '[^'.$never_edge.$never.']+'.
- ')*';
+ return '(?:'.
+ // Short project name with one or two characters not in $never_edge or
+ '[^'.$never_edge.$never.']{1,2}|'.
+ // A single character not in $never or $never_edge, then any number of characters not in $never
+ // then a single character not in $never or $never_edge
+ '[^'.$never_edge.$never.'][^'.$never.']+[^'.$never_edge.$never.']'.
+ ')';
}
-
protected function loadObjects(array $ids) {
$viewer = $this->getEngine()->getConfig('viewer');

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 13, 15:53 (19 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1008308
Default Alt Text
D25838.1734105194.diff (1014 B)

Event Timeline