Call the json delimiter 'json_lead' instead of 'java_lead'
authorAsk Bjørn Hansen <ask@develooper.com>
Sun, 16 Feb 2014 09:20:46 +0000 (01:20 -0800)
committerspf13 <steve.francia@gmail.com>
Tue, 18 Feb 2014 23:44:27 +0000 (18:44 -0500)
parser/page.go

index 54b5acfb9926e8f71f083577e002965efac1e9b8..265f78585b9cf306e1ffbb1c496022cacbc66f93 100644 (file)
@@ -17,7 +17,7 @@ const (
        TOML_LEAD       = "+"
        TOML_DELIM_UNIX = "+++\n"
        TOML_DELIM_DOS  = "+++\r\n"
-       JAVA_LEAD       = "{"
+       JSON_LEAD       = "{"
 )
 
 var (
@@ -26,7 +26,7 @@ var (
                []byte(YAML_DELIM_DOS),
                []byte(TOML_DELIM_UNIX),
                []byte(TOML_DELIM_DOS),
-               []byte(JAVA_LEAD),
+               []byte(JSON_LEAD),
        }
 
        unixEnding = []byte("\n")
@@ -161,7 +161,7 @@ func determineDelims(firstLine []byte) (left, right []byte) {
        case 2:
                fallthrough
        case 1:
-               return []byte(JAVA_LEAD), []byte("}")
+               return []byte(JSON_LEAD), []byte("}")
        default:
                panic(fmt.Sprintf("Unable to determine delims from %q", firstLine))
        }