You are here

protected static function Minifier::isAlphaNumeric in Advanced CSS/JS Aggregation 7.2

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jshrink.inc \JShrink\Minifier::isAlphaNumeric()
  2. 8.2 advagg_js_minify/jshrink.inc \JShrink\Minifier::isAlphaNumeric()
  3. 8.3 advagg_js_minify/jshrink.inc \JShrink\Minifier::isAlphaNumeric()

Checks to see if a character is alphanumeric.

Parameters

string $char Just one character:

Return value

bool

1 call to Minifier::isAlphaNumeric()
Minifier::loop in advagg_js_compress/jshrink.inc
The primary action occurs here. This function loops through the input string, outputting anything that's relevant and discarding anything that is not.

File

advagg_js_compress/jshrink.inc, line 590

Class

Minifier
Minifier

Namespace

JShrink

Code

protected static function isAlphaNumeric($char) {
  return preg_match('/^[\\w\\$\\pL]$/', $char) === 1 || $char == '/';
}