diff --git a/web/plates/js/settings.js b/web/plates/js/settings.js index b48ea506..c84d2a2b 100644 --- a/web/plates/js/settings.js +++ b/web/plates/js/settings.js @@ -609,7 +609,7 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) { if (($scope.WiFiSSID === undefined) || ($scope.WiFiSSID === null) || !isValidSSID($scope.WiFiSSID)) { $scope.WiFiErrors.WiFiSSID = "Your Network Name(\"SSID\") must be at least 1 character " + - "but not more than 32 characters. It can only contain a-z, A-Z, 0-9, _ or -."; + "but not more than 32 characters. It can only contain a-z, A-Z, 0-9, _ or '-."; $scope.WiFiErrors.Errors = true; } @@ -689,7 +689,7 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) { } } -function isValidSSID(str) { return /^[a-zA-Z0-9()! \._-]{1,32}$/g.test(str); } +function isValidSSID(str) { return /^[a-zA-Z0-9()! \._'-]{1,32}$/g.test(str); } function isValidWPA(str) { return /^[\u0020-\u007e]{8,63}$/g.test(str); } function isValidPin(str) { return /^([\d]{4}|[\d]{8})$/g.test(str); }