-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Is it correct that the pattern includes port? #44
Comments
the pattern doesn't match. How did you test it? |
I added test into @Test
public void testHostPredicates() {
assertThat(host("**").test(mockHostExchange("test.abc.com"))).isTrue();
assertThat(host("**.abc.**").test(mockHostExchange("test.abc.com"))).isTrue();
assertThat(host("**.co?").test(mockHostExchange("test.abc.com"))).isTrue();
assertThat(host("**.co").test(mockHostExchange("test.abc.com"))).isFalse();
assertThat(host("**.abc.org:*").test(mockHostExchange("www.abc.org:8080"))).isTrue();
assertThat(host("**.abc.org").test(mockHostExchange("www.abc.org:8080"))).isFalse();
} I believe that the |
I think this is working properly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tested the sample example, it seems that
a.abc.org:8080
does not match**.abc.org
. Is that supposed behavior?However
**.abc.org:*
matches.The text was updated successfully, but these errors were encountered: