You are here

private function JSMinPlus::isValidIdentifier in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
  2. 8.2 advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
  3. 8.3 advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
  4. 7.2 advagg_js_compress/jsminplus.inc \JSMinPlus::isValidIdentifier()
  5. 7 advagg_js_compress/jsminplus.inc \JSMinPlus::isValidIdentifier()
1 call to JSMinPlus::isValidIdentifier()
JSMinPlus::parseTree in advagg_js_compress/jsminplus.inc

File

advagg_js_compress/jsminplus.inc, line 741

Class

JSMinPlus

Code

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