]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/common.php
auth fix
[quix0rs-gnu-social.git] / lib / common.php
index cd4fbfb15a9455db889c3c52920b1fd17897ddf1..cf4d6e1e70ff6863b9c6c43e0e8f4070855c14c9 100644 (file)
@@ -117,6 +117,17 @@ require_once 'markdown.php';
 
 // XXX: other formats here
 
+/**
+ * Avoid the NICKNAME_FMT constant; use the Nickname class instead.
+ *
+ * Nickname::DISPLAY_FMT is more suitable for inserting into regexes;
+ * note that it includes the [] and repeating bits, so should be wrapped
+ * directly in a capture paren usually.
+ *
+ * For validation, use Nickname::normalize(), Nickname::isValid() etc.
+ *
+ * @deprecated
+ */
 define('NICKNAME_FMT', VALIDATE_NUM.VALIDATE_ALPHA_LOWER);
 
 require_once INSTALLDIR.'/lib/util.php';