summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2009-07-20 14:01:51 +1200
committerBrenda Wallace <shiny@cpan.org>2009-07-20 14:01:51 +1200
commit711ade9835f3523dcf83702834adef313f9cf54d (patch)
tree2778b81d12ad1a0b1cbfe055e79daecec5cfbd19 /classes/Notice.php
parent6b7fa65ca1558dd9763137d590dae82071de74d3 (diff)
look for full unicode when saving tags
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 101fadb67..12b47f360 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -97,11 +97,11 @@ class Notice extends Memcached_DataObject
function saveTags()
{
/* extract all #hastags */
- $count = preg_match_all('/(?:^|\s)#([A-Za-z0-9_\-\.]{1,64})/', strtolower($this->content), $match);
+ $count = preg_match_all('/(?:^|\s)#([\pL\pN_\-\.]{1,64})/', strtolower($this->content), $match);
if (!$count) {
return true;
}
-
+
/* Add them to the database */
foreach(array_unique($match[1]) as $hashtag) {
/* elide characters we don't want in the tag */