Show
Ignore:
Timestamp:
06/02/2008 12:51:45 PM (6 months ago)
Author:
Geert
Message:

Follow-up on #622. Cleaning up comments and i18n. Also dropping valid::id().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/valid.php

    r2728 r2742  
    289289        } 
    290290 
    291         /** 
    292          * Checks if a string is a valid identifier. 
    293          * 
    294          * @param   string   input string 
    295          * @return  boolean 
    296          */ 
    297         public static function id($str) 
    298         { 
    299                 return (bool) preg_match('/^[a-z][a-z0-9_]++$/iD', (string) $str); 
    300         }     
    301  
    302291} // End valid