We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm no regex wizard but I can't seem to figure out how to properly validate for a simple app identifier.
At a most basic level I would like for any permutation of dots and [a-zA-Z0-9] to pass but any other character used to fail.
PASS: com com.mycorp.we com.mycorp.we.feature com.mycorp.we.feature.prd
FAIL: c- com.my-corp com-my-corp
I'd honestly expect [a-zA-Z0-9] as is to work but all of the failure cases with this regex pass.
[a-zA-Z0-9]
The text was updated successfully, but these errors were encountered:
The FAIL cases pass because they do contain [a-zA-Z0-9].
What you're looking for is ^[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)*$
^[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)*$
Sorry, something went wrong.
No branches or pull requests
I'm no regex wizard but I can't seem to figure out how to properly validate for a simple app identifier.
At a most basic level I would like for any permutation of dots and [a-zA-Z0-9] to pass but any other character used to fail.
PASS:
com
com.mycorp.we
com.mycorp.we.feature
com.mycorp.we.feature.prd
FAIL:
c-
com.my-corp
com-my-corp
I'd honestly expect
[a-zA-Z0-9]
as is to work but all of the failure cases with this regex pass.The text was updated successfully, but these errors were encountered: