aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-09 17:35:26 -0700
committerFriendika <info@friendika.com>2011-09-09 17:35:26 -0700
commitebb9af8946b68a545d9a7b5a6763721627a981f7 (patch)
tree71f20c8a3731e206e5f6a828258f13a2e29f866c
parentd7a2ab9c1f34b8a20d63b275d308601b7309d9b8 (diff)
downloadvolse-hubzilla-ebb9af8946b68a545d9a7b5a6763721627a981f7.tar.gz
volse-hubzilla-ebb9af8946b68a545d9a7b5a6763721627a981f7.tar.bz2
volse-hubzilla-ebb9af8946b68a545d9a7b5a6763721627a981f7.zip
One day we'll have ignored all purely numeric hashtags like #33. Found yet another edge case.
-rw-r--r--include/text.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/text.php b/include/text.php
index 536c998de..33add768f 100644
--- a/include/text.php
+++ b/include/text.php
@@ -482,13 +482,12 @@ function get_tags($s) {
// we might be inside a bbcode color tag - leave it alone
continue;
}
+ 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)))
continue;
- if(substr($mtch,-1,1) === '.')
- $ret[] = substr($mtch,0,-1);
- else
- $ret[] = $mtch;
+ $ret[] = $mtch;
}
}
return $ret;