From d70a3b022e59dfc484d350335ca25eb02998b8eb Mon Sep 17 00:00:00 2001 From: Jordan Date: Tue, 2 Mar 2021 20:15:24 -0700 Subject: doi regexp; match colons --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.go b/util.go index 93bf0a6..a1b585c 100644 --- a/util.go +++ b/util.go @@ -49,7 +49,7 @@ func isPrivateIP(ip net.IP) bool { // getDOIFromBytes returns the DOI parsed from the provided []byte slice func getDOIFromBytes(b []byte) []byte { - re := regexp.MustCompile(`(10[.][0-9]{4,}[^\s"/<>]*/[^\s"'<>,\{\};:\[\]\?&]+)`) + re := regexp.MustCompile(`(10[.][0-9]{4,}[^\s"/<>]*/[^\s"'<>,\{\};\[\]\?&]+)`) return re.Find(b) } -- cgit v1.2.3-54-g00ecf