Same name in other branches
  1. 5.0.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
  2. 6.0.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
  3. 7.x-2.x advagg_js_compress/jsminplus.inc \JSMinPlus::isValidIdentifier()
  4. 8.x-2.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
  5. 8.x-3.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
  6. 8.x-4.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
1 call to JSMinPlus::isValidIdentifier()
JSMinPlus::parseTree dans advagg_js_compress/jsminplus.inc

Fichier

advagg_js_compress/jsminplus.inc, line 741

Classe

JSMinPlus

Code

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