Same name in other branches
- 5.0.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
- 6.0.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
- 7.x-1.x advagg_js_compress/jsminplus.inc \JSMinPlus::isValidIdentifier()
- 8.x-2.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
- 8.x-3.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
- 8.x-4.x advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
1 call to JSMinPlus::isValidIdentifier()
- JSMinPlus::parseTree in advagg_js_compress/
jsminplus.inc
File
-
advagg_js_compress/
jsminplus.inc, line 757
Class
Code
private function isValidIdentifier($string) {
return preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', $string) && !in_array($string, $this->reserved);
}