You are here

private function JSMinPlus::isValidIdentifier in Javascript Aggregator 6

1 call to JSMinPlus::isValidIdentifier()
JSMinPlus::parseTree in ./jsminplus.php

File

./jsminplus.php, line 662

Class

JSMinPlus

Code

private function isValidIdentifier($string) {
  return preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', $string) && !in_array($string, $this->reserved);
}