You are here

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

Same name and namespace in other branches
  1. 8.2 advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
  2. 8.3 advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
  3. 6 advagg_js_compress/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_minify/jsminplus.inc

File

advagg_js_minify/jsminplus.inc, line 757
JSMinPlus version 1.4

Class

JSMinPlus

Code

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