Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitelist all worlds #37

Closed
AaronMcHale opened this issue Jun 23, 2018 · 4 comments
Closed

Whitelist all worlds #37

AaronMcHale opened this issue Jun 23, 2018 · 4 comments

Comments

@AaronMcHale
Copy link

Is it possible to whitelist every world?

I tried using * or '*' as the world name which doesn't work, also tried proper regex [\s\S]* which also doesn't match.

@SBPrime
Copy link
Owner

SBPrime commented Jun 23, 2018

Did you try .*?

@SBPrime SBPrime closed this as completed Jun 23, 2018
@AaronMcHale
Copy link
Author

That worked, thanks.

I couldn't seem to find the .* documented, the only thing I saw was world.*, which wasn't obvious that it could be modified to just .*. Might be a good idea to document that better?

Thanks
-Aaron

@SBPrime
Copy link
Owner

SBPrime commented Jun 23, 2018

In the documentation it says that its a regexp.

@AaronMcHale
Copy link
Author

Yes that's true, although it seems the first regex I tried [\s\S]* didn't seem to work, even those it does validate as correct.

That could more just be one of the oddities of the Java Regex Matchers, but then it might be worth explicitly documenting .* as an example since I imagine it's quite a common use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants