       dataToUpdate.defaultChannels = newChannels
 
     unless _.isEqual newDomains, jGroup.allowedDomains
-      for domain in newDomains when not domainRegex.test domain
+      for domain in newDomains when not validator.isURL domain
         return @notify 'Please check allowed domains again'
 
       dataToUpdate.allowedDomains = newDomains

    jGroup       = @getData()
    newChannels  = @separateCommas channels
    newDomains   = @separateCommas domains
    domainRegex  = /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/
    dataToUpdate = {}

    unless formData.title is jGroup.title

GroupLogoSettings  = require '../grouplogosettings'
KDNotificationView = kd.NotificationView


module.exports = class GroupGeneralSettingsView extends KDCustomScrollView

  constructor: (options = {}, data) ->
