dendrite/vendor/src/github.com/tidwall/match
Richard van der Hoff 0786318a04
Bump gomatrixserverlib (#353)
* Bump gomatrixserverlib

Mostly because I want to use Erik's go-faster jsoning.

* Update KeyDB for new KeyFetcher API

we now need to implement FetcherName.

* Attempt to fix integ tests

CanonicalJSON doesn't like the empty string, apparently, and anyway
canonicalising it is pointless.

* More integ test fix
2017-11-27 12:05:14 +00:00
..
LICENSE Bump gomatrixserverlib (#353) 2017-11-27 12:05:14 +00:00
match_test.go Bump gomatrixserverlib (#353) 2017-11-27 12:05:14 +00:00
match.go Bump gomatrixserverlib (#353) 2017-11-27 12:05:14 +00:00
README.md Bump gomatrixserverlib (#353) 2017-11-27 12:05:14 +00:00

Match

Build Status GoDoc

Match is a very simple pattern matcher where '*' matches on any number characters and '?' matches on any one character.

Installing

go get -u github.com/tidwall/match

Example

match.Match("hello", "*llo") 
match.Match("jello", "?ello") 
match.Match("hello", "h*o") 

Contact

Josh Baker @tidwall

License

Redcon source code is available under the MIT License.