diff options
author | Jordan <me@jordan.im> | 2021-03-02 20:15:24 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-03-02 20:15:24 -0700 |
commit | d70a3b022e59dfc484d350335ca25eb02998b8eb (patch) | |
tree | d20400d889903d2939d8f60eeb27a0bac57c1a64 | |
parent | 4fe9c5db310999dcfcbb543faa62457e5986d71b (diff) | |
download | crane-d70a3b022e59dfc484d350335ca25eb02998b8eb.tar.gz crane-d70a3b022e59dfc484d350335ca25eb02998b8eb.zip |
doi regexp; match colons
-rw-r--r-- | util.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |