ecere/src/sys/JSON: Skipping '/'
authorJerome St-Louis <jerome@ecere.com>
Wed, 9 Dec 2015 23:13:10 +0000 (18:13 -0500)
committerJerome St-Louis <jerome@ecere.com>
Fri, 29 Apr 2016 16:27:03 +0000 (12:27 -0400)
- Was this an attempt at ignoring comments or behaving better on invalid JSON?

ecere/src/sys/JSON.ec

index e076c82..ff4f774 100644 (file)
@@ -38,7 +38,7 @@ public:
 
    void SkipEmpty()
    {
-      while(!f.Eof() && (!ch || ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t'))
+      while(!f.Eof() && (!ch || ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t' || ch == '/'))
       {
          f.Getc(&ch);
       }