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

StringArgumentType with regex #96

Open
NgLoader opened this issue Jul 17, 2021 · 0 comments
Open

StringArgumentType with regex #96

NgLoader opened this issue Jul 17, 2021 · 0 comments

Comments

@NgLoader
Copy link

NgLoader commented Jul 17, 2021

Adding in StringArgumentType a regex method for regex input verification.

Example:

LiteralArgumentBuilder.literal("example")
	.then(RequierdArgumentBuilder.argument("date", StringArgumentType.regex("REGEX")))

Example:

  • /example 04-27-2000
  • /example 04.27.2000
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

1 participant