]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
push regex pattern for UUID to that class
authorEvan Prodromou <evan@status.net>
Mon, 20 Jun 2011 05:11:08 +0000 (01:11 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 20 Jun 2011 05:11:08 +0000 (01:11 -0400)
lib/uuid.php

index 93153504f2868ec8eca91df7c61714358a0981bd..386d0e2121fbbdc976e6b5ee1ffa0153c664e2f0 100644 (file)
@@ -47,6 +47,7 @@ if (!defined('STATUSNET')) {
 
 class UUID
 {
+    const REGEX = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}';
     protected $str = null;
 
     /**