urbanairship-core/src/test/java/com/urbanairship/js/WhitelistTest.java
@Test
    public void testRegExEscaped() {
        assertTrue(whitelist.addEntry("w+.+://[a-z,A-Z]+"));

        assertFalse(whitelist.isWhitelisted("wwww://urbanairship", Whitelist.SCOPE_ALL));

        // It should match on a host that is equal to [a-z,A-Z]+
        assertTrue(whitelist.isWhitelisted("w+.+://[a-z,A-Z]%2B", Whitelist.SCOPE_ALL));
    }
/**
     * Test regular expression on the host and schema are treated as literals.
     */
Test regular expression on the host and schema are treated as literals.
Test regular expression on the host and schema are treated as literals .
@Test
    public void testRegExEscaped() {
        assertTrue(whitelist.addEntry("w+.+://[a-z,A-Z]+"));
        assertFalse(whitelist.isWhitelisted("wwww://urbanairship", Whitelist.SCOPE_ALL));
        assertTrue(whitelist.isWhitelisted("w+.+://[a-z,A-Z]%2B", Whitelist.SCOPE_ALL));
    }
@ Test public void testRegExEscaped ( ) { assertTrue ( whitelist . addEntry ( "w+.+://[a-z,A-Z]+" ) ) ; assertFalse ( whitelist . isWhitelisted ( "wwww://urbanairship" , Whitelist . SCOPE_ALL ) ) ; assertTrue ( whitelist . isWhitelisted ( "w+.+://[a-z,A-Z]%2B" , Whitelist . SCOPE_ALL ) ) ; }
Test regular expression on the host and schema are treated as literals.
Test regular expression on the host and schema are treated as literals .
// It should match on a host that is equal to [a-z,A-Z]+