From b528c9f726c32e44ca2dfb816078a27537b189a1 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Sat, 16 Nov 2019 19:41:16 +0100 Subject: Remove obsolete vars from libgemini --- libgemini.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libgemini.go b/libgemini.go index 20fc137..94744ba 100644 --- a/libgemini.go +++ b/libgemini.go @@ -47,10 +47,8 @@ const ( ) var ( - HeaderPattern = regexp.MustCompile("^(\\d\\d)[ \\t]+(.*)$") - MimeTypePattern = regexp.MustCompile("^[-\\w.]+/[-\\w.]+") - MimeCharsetPattern = regexp.MustCompile("charset=([^ ;]+)") - GeminiLinkPattern = regexp.MustCompile("^=>[ \\t]*([^ \\t]+)(?:[ \\t]+(.*))?$") + HeaderPattern = regexp.MustCompile("^(\\d\\d)[ \\t]+(.*)$") + GeminiLinkPattern = regexp.MustCompile("^=>[ \\t]*([^ \\t]+)(?:[ \\t]+(.*))?$") ) type GeminiHeader struct { -- cgit v1.2.3-70-g09d2