summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-29 14:15:25 -0800
committerBrion Vibber <brion@pobox.com>2010-11-29 14:15:25 -0800
commitdc350b5463e7d64a46d7f90143c2d001be99e280 (patch)
treebdf19094f16b2cfd35dac1ef309954e89ac3494b /lib/common.php
parent6e249b4ab5aa292d78cfaa9be9dce8706e27ad80 (diff)
Work in progress on nickname validation changes. lib/nickname.php appears to have been destroyed by NetBeans and will be rewritten shortly. Sigh.
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index cd4fbfb15..d89180718 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -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::validate() etc.
+ *
+ * @deprecated
+ */
define('NICKNAME_FMT', VALIDATE_NUM.VALIDATE_ALPHA_LOWER);
require_once INSTALLDIR.'/lib/util.php';