Porównaj commity

...

2 Commity

Autor SHA1 Wiadomość Data
Yury V. Zaytsev b51bc6e079 feat(settings): add apostrophe (') to the list of supported ssid characters 2023-11-07 22:58:04 +01:00
Yury V. Zaytsev 32944b15ed fix(settings): remove obsolete CountryCodeList variable causing exception 2023-11-07 22:58:04 +01:00
1 zmienionych plików z 2 dodań i 5 usunięć

Wyświetl plik

@ -349,9 +349,6 @@ function SettingsCtrl($rootScope, $scope, $state, $location, $window, $http) {
// Update theme
$scope.$parent.updateTheme($scope.DarkMode);
$scope.CountryCodeList = countryCodes;
}
function getSettings() {
@ -612,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;
}
@ -692,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); }