Sv443-Network / JokeAPI

REST API that serves uniformly and well formatted jokes in JSON, XML, YAML or plain text format that also offers a great variety of filtering methods
https://v2.jokeapi.dev
MIT License
248 stars 46 forks source link

Wildcard and OR operator support for `?contains` parameter #289

Closed Sv443 closed 1 year ago

Sv443 commented 3 years ago

Example:

https://jokeapi.dev/joke/Any?contains=foo*|*baz

Jokes:

foo (match)
foobar (match)
foo bar baz (match)
bar foo (no match)
bar baz (match)
bar baz bar (no match)

Important:

Make sure the users can't ReDoS the API

Sv443 commented 3 years ago

Still not done, see #331