JokeAPI icon indicating copy to clipboard operation
JokeAPI copied to clipboard

Wildcard and OR operator support for `?contains` parameter

Open Sv443 opened this issue 4 years ago • 1 comments

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 avatar Jun 06 '21 14:06 Sv443

Still not done, see #331

Sv443 avatar Oct 14 '21 10:10 Sv443