aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2021-03-02 20:15:24 -0700
committerJordan <me@jordan.im>2021-03-02 20:15:24 -0700
commitd70a3b022e59dfc484d350335ca25eb02998b8eb (patch)
treed20400d889903d2939d8f60eeb27a0bac57c1a64
parent4fe9c5db310999dcfcbb543faa62457e5986d71b (diff)
downloadcrane-d70a3b022e59dfc484d350335ca25eb02998b8eb.tar.gz
crane-d70a3b022e59dfc484d350335ca25eb02998b8eb.zip
doi regexp; match colons
-rw-r--r--util.go2
1 files changed, 1 insertions, 1 deletions
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)
}