File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1616
1717final 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 ;
You can’t perform that action at this time.
0 commit comments