look for full unicode when saving tags

This commit is contained in:
Brenda Wallace 2009-07-20 14:01:51 +12:00
parent 6b7fa65ca1
commit 711ade9835

View File

@ -97,7 +97,7 @@ 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;
}