Piotr Czajkowski 1 долоо хоног өмнө
parent
commit
f2a0eba814
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      storage.go

+ 1 - 1
storage.go

@@ -37,7 +37,7 @@ func readLinks(path string) {
 			break
 		}
 
-		parts := strings.Split(line, "<>")
+		parts := strings.SplitN(line, "<>", 2)
 		if len(parts) != 2 {
 			log.Printf("Wrong line format: %s", line)
 		}