From b40dc80d2ffa8706878ee8d2be16cabd6c08a000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Cuadros?= Date: Tue, 5 May 2020 12:53:58 +0200 Subject: [PATCH] regexp: Match, remove test code --- regex.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/regex.go b/regex.go index 8fb6546..486412c 100644 --- a/regex.go +++ b/regex.go @@ -215,10 +215,6 @@ func getCapture(b []byte, beg int, end int) []byte { } func (re *Regexp) match(b []byte, n int, offset int) bool { - if n == 0 { - return true - } - if n == 0 { b = []byte{0} }