Permalink
Browse files

Changed the regex for detection of the points icon to only detect "(d…

…)" [was "d" and "points"].
  • Loading branch information...
1 parent 57410df commit b83f585f104c392dc409605e9433a2edb26fbb39 @deltachemist deltachemist committed Feb 4, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/message.php
View
@@ -52,7 +52,7 @@ static public function linkify($message)
'/gameID[:= _]?([0-9]+)/i',
'/userID[:= _]?([0-9]+)/i',
'/threadID[:= _]?([0-9]+)/i',
- '/((?:[^a-z0-9])|(?:^))([0-9]+) ?(?:(?:D)|(?:points))((?:[^a-z])|(?:$))/i',
+ '/((?:[^a-z0-9])|(?:^))([0-9]+) ?(?:\(D\))((?:[^a-z])|(?:$))/i',
);
$replacements = array(
'<a href="board.php?gameID=\1" class="light">gameID=\1</a>',

0 comments on commit b83f585

Please sign in to comment.