import isURL from 'validator/lib/isURL';

export default (value, [domain]) => isURL(value, { host_whitelist: domain ? [domain] : undefined });

@@ -70,12 +70,30 @@
 ain%5D
-) =%3E
+ = %5Bundefined%5D) =%3E%0A   
  isU

fix failing test