r4396 bugfix: Rackcode check report was croaking on $op_get_link_status and other...
authorAlexey Andriyanov <alan@al-an.info>
Fri, 25 Mar 2011 16:21:16 +0000 (16:21 +0000)
committerAlexey Andriyanov <alan@al-an.info>
Fri, 25 Mar 2011 16:21:16 +0000 (16:21 +0000)
findAutoTagWarnings: fixed op_* regexp

wwwroot/inc/code.php

index 12b2342..830849d 100644 (file)
@@ -957,7 +957,7 @@ function findAutoTagWarnings ($expr)
                                                'class' => 'warning',
                                                'text' => "Page number '${recid}' does not exist."
                                        ));
-                               case (preg_match ('/^\$(tab|op)_[\p{L}0-9]+$/u', $expr['load'])):
+                               case (preg_match ('/^\$(tab|op)_[\p{L}0-9_]+$/u', $expr['load'])):
                                case (preg_match ('/^\$any_(op|rack|object|ip4net|net|ipv4vs|vs|ipv4rsp|rsp|file)$/', $expr['load'])):
                                case (preg_match ('/^\$typeid_[[:digit:]]+$/', $expr['load'])): // FIXME: check value validity
                                case (preg_match ('/^\$cn_.+$/', $expr['load'])): // FIXME: check name validity and asset existence