]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
look for full unicode when saving tags
authorBrenda Wallace <shiny@cpan.org>
Mon, 20 Jul 2009 02:01:51 +0000 (14:01 +1200)
committerBrenda Wallace <shiny@cpan.org>
Mon, 20 Jul 2009 02:01:51 +0000 (14:01 +1200)
classes/Notice.php

index 101fadb6743ed8b5ca923801e85cf1b2c470ef0a..12b47f3604b686dc7a948355b6ac2fcd3606218f 100644 (file)
@@ -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 */