Skip to content

Commit e1f62ba

Browse files
committed
Finish the error implementation?
I thought I had everything committed but I guess not...
1 parent ed9f332 commit e1f62ba

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/HJSON/HJSONParser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ private function error($m)
308308

309309
$i = $this->at;
310310
while ($i > 0) {
311+
$ch = mb_substr(mb_strcut($this->text, $i - 1), 0, 1);
311312
$i -= strlen($ch);
312313

313314
if ($ch === "\n") {

0 commit comments

Comments
 (0)