Compare commits
No commits in common. "564081a5817571b33add98e753d08a2e3146b0d8" and "965d2c87f5e365a0cf0bef8947dc252b86239bc4" have entirely different histories.
564081a581
...
965d2c87f5
6
main.go
6
main.go
|
|
@ -741,7 +741,7 @@ func (h *graphHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
defer r.Body.Close()
|
||||
|
||||
metaKV, err := regexp.Compile(`(\w[ \w]+)::\s+(.*)`)
|
||||
metaKV, err := regexp.Compile(`(\w+)::\s+(.*)`)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
@ -842,7 +842,7 @@ func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
for _, line := range lines {
|
||||
if first {
|
||||
builder.WriteString(strings.Repeat(" ", item.Indented))
|
||||
builder.WriteString("- ")
|
||||
builder.WriteString("* ")
|
||||
builder.WriteString(line)
|
||||
builder.WriteByte('\n')
|
||||
first = false
|
||||
|
|
@ -859,7 +859,7 @@ func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
}
|
||||
builder.WriteString(strings.Repeat(" ", item.Indented))
|
||||
builder.WriteString("- ")
|
||||
builder.WriteString("* ")
|
||||
builder.WriteString(item.Text)
|
||||
builder.WriteByte('\n')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user