@@ -25,7 +25,7 @@ |
||
| 25 | 25 | // https://stackoverflow.com/questions/6058394/unicode-character-in-php-string |
| 26 | 26 | |
| 27 | 27 | // RegEx: https://regex101.com/r/yS2zX8/3 |
| 28 | - return preg_replace_callback('/(\\\\u([0-9a-fA-F]{4}))+/', function ($match) { |
|
| 28 | + return preg_replace_callback('/(\\\\u([0-9a-fA-F]{4}))+/', function($match) { |
|
| 29 | 29 | return json_decode('"' . $match[0] . '"'); |
| 30 | 30 | }, $string); |
| 31 | 31 | } |