Skip to content

Commit 187edf1

Browse files
author
Łukasz Piotrowski
committedJul 3, 2015
Added UTF char detection
1 parent b962064 commit 187edf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/JShrink/Minifier.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ protected function saveRegex()
537537
*/
538538
protected static function isAlphaNumeric($char)
539539
{
540-
return preg_match('/^[\w\$]$/', $char) === 1 || $char == '/';
540+
return preg_match('/^[\w\$\pL]$/', $char) === 1 || $char == '/';
541541
}
542542

543543
/**

0 commit comments

Comments
 (0)