private function JSMinPlus::isValidIdentifier in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 8.4 advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
- 8.2 advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
- 8.3 advagg_js_minify/jsminplus.inc \JSMinPlus::isValidIdentifier()
- 7.2 advagg_js_compress/jsminplus.inc \JSMinPlus::isValidIdentifier()
- 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
Code
private function isValidIdentifier($string) {
return preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', $string) && !in_array($string, $this->reserved);
}