Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed CS

  • Loading branch information...
commit 76ce6fd53c6ed1bca1b9b7d594e83cefd4748d1f 1 parent 84ecc73
Fabien Potencier fabpot authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  Tokenizer.php
3  Tokenizer.php
View
@@ -154,8 +154,7 @@ private function tokenizeEscapedString($s, $pos)
*/
private function unescapeStringLiteral($literal)
{
- return preg_replace_callback('#(\\\\(?:[A-Fa-f0-9]{1,6}(?:\r\n|\s)?|[^A-Fa-f0-9]))#', function ($matches) use ($literal)
- {
+ return preg_replace_callback('#(\\\\(?:[A-Fa-f0-9]{1,6}(?:\r\n|\s)?|[^A-Fa-f0-9]))#', function ($matches) use ($literal) {
if ($matches[0][0] == '\\' && strlen($matches[0]) > 1) {
$matches[0] = substr($matches[0], 1);
if (in_array($matches[0][0], array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'a', 'b', 'c', 'd', 'e', 'f'))) {
Please sign in to comment.
Something went wrong with that request. Please try again.