kopia lustrzana https://github.com/cyoung/stratux
feat(settings): add apostrophe (') to the list of supported ssid characters
rodzic
32944b15ed
commit
b51bc6e079
|
@ -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); }
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue