We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2c9eb1 commit 44448cbCopy full SHA for 44448cb
1 file changed
src/HJSON/HJSONParser.php
@@ -30,7 +30,7 @@ public function __construct()
30
public function parse($source, $options = [])
31
{
32
$this->keepWsc = $options && isset($options['keepWsc']) && $options['keepWsc'];
33
- $this->textArray = preg_split("//u", $source, null, PREG_SPLIT_NO_EMPTY);
+ $this->textArray = preg_split("//u", $source, -1, PREG_SPLIT_NO_EMPTY);
34
$this->textLengthChars = count($this->textArray);
35
36
$data = $this->rootValue();
0 commit comments