private function JSMinPlus::isValidIdentifier in Javascript Aggregator 6
1 call to JSMinPlus::isValidIdentifier()
File
- ./
jsminplus.php, line 662
Class
Code
private function isValidIdentifier($string) {
return preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', $string) && !in_array($string, $this->reserved);
}