Don't recognise hashtags starting with #, e.g. ###
This commit is contained in:
parent
1eb478ba54
commit
e80c20d258
@ -619,8 +619,8 @@ function get_tags($s) {
|
||||
}
|
||||
if(substr($mtch,-1,1) === '.')
|
||||
$mtch = substr($mtch,0,-1);
|
||||
// ignore strictly numeric tags like #1
|
||||
if((strpos($mtch,'#') === 0) && ( ctype_digit(substr($mtch,1)) || substr($mtch,1,1) === '^'))
|
||||
// ignore strictly numeric tags like #1 or #^ bookmarks or ## double hash
|
||||
if((strpos($mtch,'#') === 0) && ( ctype_digit(substr($mtch,1)) || substr($mtch,1,1) === '^') || substr($mtch,1,1) === '#')
|
||||
continue;
|
||||
// try not to catch url fragments
|
||||
if(strpos($s,$mtch) && preg_match('/[a-zA-z0-9\/]/',substr($s,strpos($s,$mtch)-1,1)))
|
||||
|
@ -1 +1 @@
|
||||
2014-10-14.828
|
||||
2014-10-15.829
|
||||
|
Reference in New Issue
Block a user