]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/nickname.php
Fix dumb mistake -- changed function names partway through writing Nickname and forgo...
[quix0rs-gnu-social.git] / lib / nickname.php
index 48269f3b9f5f4de08d81e461f8885ef3103635bd..a0c9378cd3add545ecde82f63425b323652fb99e 100644 (file)
@@ -23,7 +23,7 @@ class Nickname
      * Regex fragment for pulling an arbitrarily-formated nickname.
      *
      * Not guaranteed to be valid after normalization; run the string through
-     * Nickname::normalize() to get the canonical form, or Nickname::validate()
+     * Nickname::normalize() to get the canonical form, or Nickname::isValid()
      * if you just need to check if it's properly formatted.
      *
      * This and CANONICAL_FMT replace the old NICKNAME_FMT, but be aware
@@ -61,7 +61,7 @@ class Nickname
      * @param string $str
      * @return boolean
      */
-    public static function validate($str)
+    public static function isValid($str)
     {
         try {
             self::normalize($str);