Jid.of() pattern matching

Issue #74 invalid
Former user created an issue

Hi,

I was trying to connect to my amazon ws, URL like

ec2-12-22-7-72.ap-southeast-2.compute.amazonaws.com

but the pattern matching failed. Reckon pattern needs to be more generic.

Comments (2)

  1. Christian Schudt repo owner

    Hi,

    do you have more information here? I've tried this with 0.6 version and current master and it succeeds (works as expected):

    @Test
        public void testComplexDomain() throws IOException, ClassNotFoundException {
            Jid jid = Jid.of("test@ec2-12-22-7-72.ap-southeast-2.compute.amazonaws.com");
            Assert.assertEquals(jid.getDomain(), "ec2-12-22-7-72.ap-southeast-2.compute.amazonaws.com");
        }
    
  2. Log in to comment