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