Skip to content

Commit

Permalink
Decoder: replaced \x00-\x20 with \s
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 27, 2019
1 parent e4e30bd commit 0a18fc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Neon/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ final class Decoder

// literal / boolean / integer / float
'
(?: [^#"\',:=[\]{}()\x00-\x20`-] | (?<!["\']) [:-] [^"\',=[\]{}()\s] )
(?: [^#"\',:=[\]{}()\s`-] | (?<!["\']) [:-] [^"\',=[\]{}()\s] )
(?:
[^,:=\]})(\x00-\x20]++ |
[^,:=\]})(\s]++ |
:(?! [\s,\]})] | $ ) |
[\ \t]++ [^#,:=\]})(\x00-\x20]
[\ \t]++ [^#,:=\]})(\s]
)*+
',

Expand Down

0 comments on commit 0a18fc8

Please sign in to comment.