feat(settings): add apostrophe (') to the list of supported ssid characters

pull/827/merge^2
Yury V. Zaytsev 2023-11-07 21:07:26 +01:00 zatwierdzone przez Adrian Batzill
rodzic 32944b15ed
commit b51bc6e079
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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); }