Skip to content

Commit 2bb3fbf

Browse files
committed
Remove accidentally-public constant
While this is technically a breaking change, it was also a bug and nobody else has downloaded 1.0.0 yet, so this is fine.
1 parent 4697d46 commit 2bb3fbf

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
66

77
## [Unreleased][unreleased]
88

9-
## 1.0.0
9+
## [1.0.1] - 2017-11-11
10+
### Removed
11+
- Removed accidentally-public constant
12+
13+
## 1.0.0 - 2017-11-11
1014
### Added
1115
- Initial commit
1216

13-
[unreleased]: https://github.com/colinodell/json5/compare/1.0.0...HEAD
17+
[unreleased]: https://github.com/colinodell/json5/compare/1.0.1...HEAD
18+
[1.0.1]: https://github.com/colinodell/json5/compare/1.0.0...1.0.1

src/Json5Decoder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
final class Json5Decoder
1818
{
19-
const REGEX_WHITESPACE = '/[ \t\r\n\v\f\xA0\x{FEFF}]/u';
20-
2119
private $json;
2220

2321
private $at = 0;
@@ -422,7 +420,7 @@ private function white()
422420
while ($this->ch !== null) {
423421
if ($this->ch === '/') {
424422
$this->comment();
425-
} elseif (preg_match(self::REGEX_WHITESPACE, $this->ch) === 1) {
423+
} elseif (preg_match('/[ \t\r\n\v\f\xA0\x{FEFF}]/u', $this->ch) === 1) {
426424
$this->next();
427425
} else {
428426
return;

0 commit comments

Comments
 (0)