limit recursion to max 25 asterisks
The algorithm used is exponential in number of '*' characters. By
limiting the recursion to 25 we can guarantee it will finish reasonably
fast anyway. A testcase for this behavior is provided.
This is a port of the fix for the same bug in NetBSD libc.
go mod init && go mod tidy
move tests into the same package
Change int's to rune's and remove gospec dependency
fnmatch would not run at all without changing the int's to rune's
Removing Gospec as is is deprecated and table driven tests are just
as readable