now allow S and E in class hints :)
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 4 Aug 2005 18:26:45 +0000 (18:26 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 4 Aug 2005 18:26:45 +0000 (18:26 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@462 9efc2488-bf62-4759-914b-345cdb29e865

src/objson/json_parser.c

index db47fb5..ac0de5f 100644 (file)
@@ -633,6 +633,11 @@ int json_eat_comment(char* string, unsigned long* index, char** buffer, int pars
                                        (*index)--; /* this will get incremented at the bottom of the loop */
                                        in_hint = 1;
                                        break;
+                               } 
+
+                               if(second_dash && in_hint) {
+                                       buffer_add_char(buf, c);
+                                       break;
                                }
 
                        case 'E':
@@ -645,6 +650,11 @@ int json_eat_comment(char* string, unsigned long* index, char** buffer, int pars
                                        break;
                                }
 
+                               if(second_dash && in_hint) {
+                                       buffer_add_char(buf, c);
+                                       break;
+                               }
+
                        case '*':
                                on_star = 1;
                                break;