diff --git a/php/servers/servers-rooms.php b/php/servers/servers-rooms.php index 99e282bc..241d7008 100644 --- a/php/servers/servers-rooms.php +++ b/php/servers/servers-rooms.php @@ -141,7 +141,7 @@ /** * Regular expression matching tags specified in the Community description. */ - private const DESCRIPTION_TAGS_SPECIFICATION = '/(#[^#()@., ]+(?:,?\s*|\s+|$))+\s*$/'; + private const DESCRIPTION_TAGS_SPECIFICATION = '/(#[^#()@., ]+(?:,?\s*|\s+|$))+\s*.?$/'; /** @@ -186,6 +186,7 @@ // Trim tags from description. $this->description = substr($this->description, 0, strpos($this->description, $tag_specification)); + $this->description = preg_replace('/\s*tags:\s*$/i', '', $this->description); } /**