/src/main/java/org/htmlunit/ProxyAutoConfig.java
return host.indexOf( '.') <= -1;
return host.indexOf ( '.' ) == -1;
final FunctionObject functionObject = new FunctionObject(methodName, method, scope); ((ScriptableObject) scope).defineProperty(methodName, functionObject, ScriptableObject.EMPTY); } } } public static boolean isPlainHostName(final String host) { <extra_id_0> } public static boolean dnsDomainIs(final String host, final String domain) { return host.endsWith(domain); } public static boolean localHostOrDomainIs(final String host, final String hostdom) { return host.length() > 1 && host.equals(hostdom) || host.indexOf('.') == -1 && hostdom.startsWith(host);