mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-28 16:56:26 +00:00
Improve test (#2454)
* adjust regex to caught corner case * fix wrong lines
This commit is contained in:
parent
fb08bf2238
commit
7ce254f152
@ -486,7 +486,7 @@ Please take a quick gander at the [contribution guidelines](https://github.com/a
|
||||
* [cachego](https://github.com/fabiorphp/cachego) - Golang Cache component for multiple drivers.
|
||||
* [cayley](https://github.com/google/cayley) - Graph database with support for multiple backends.
|
||||
* [dsc](https://github.com/viant/dsc) - Datastore connectivity for SQL, NoSQL, structured files.
|
||||
* [gokv](https://github.com/philippgille/gokv) - Simple key-value store abstraction and implementations for Go (Redis, Consul, etcd, bbolt, BadgerDB, LevelDB, Memcached, DynamoDB, S3, PostgreSQL, MongoDB, CockroachDB and many more)
|
||||
* [gokv](https://github.com/philippgille/gokv) - Simple key-value store abstraction and implementations for Go (Redis, Consul, etcd, bbolt, BadgerDB, LevelDB, Memcached, DynamoDB, S3, PostgreSQL, MongoDB, CockroachDB and many more).
|
||||
|
||||
## Date and Time
|
||||
|
||||
@ -1770,7 +1770,7 @@ See [go-hardware](https://github.com/rakyll/go-hardware) for a comprehensive lis
|
||||
* [formjson](https://github.com/rs/formjson) - Transparently handle JSON input as a standard form POST.
|
||||
* [go-server-timing](https://github.com/mitchellh/go-server-timing) - Add/parse Server-Timing header.
|
||||
* [Limiter](https://github.com/ulule/limiter) - Dead simple rate limit middleware for Go.
|
||||
* [ln-paywall](https://github.com/philippgille/ln-paywall) - Go middleware for monetizing APIs on a per-request basis with the Lightning Network (Bitcoin)
|
||||
* [ln-paywall](https://github.com/philippgille/ln-paywall) - Go middleware for monetizing APIs on a per-request basis with the Lightning Network (Bitcoin).
|
||||
* [Tollbooth](https://github.com/didip/tollbooth) - Rate limit HTTP request handler.
|
||||
* [XFF](https://github.com/sebest/xff) - Handle `X-Forwarded-For` header and friends.
|
||||
|
||||
|
@ -49,7 +49,7 @@ func TestDuplicatedLinks(t *testing.T) {
|
||||
|
||||
var (
|
||||
reContainsLink = regexp.MustCompile(`\* \[.*\]\(.*\)`)
|
||||
reOnlyLink = regexp.MustCompile(`\* \[.*\]\(.*\)$`)
|
||||
reOnlyLink = regexp.MustCompile(`\* \[.*\]\([^()]*\)$`)
|
||||
reLinkWithDescription = regexp.MustCompile(`\* \[.*\]\(.*\) - \S.*[\.\!]`)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user