/* SPDX-FileCopyrightText: 2013-2017 Jan Grulich SPDX-FileCopyrightText: 2023 ivan tkachenko SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ import QtQuick import org.kde.plasma.networkmanagement as PlasmaNM import org.kde.plasma.extras as PlasmaExtras PlasmaExtras.PasswordField { property int/*PlasmaNM.Enums.SecurityType*/ securityType validator: RegularExpressionValidator { regularExpression: (securityType === PlasmaNM.Enums.StaticWep) ? /^(?:.{5}|[0-9a-fA-F]{10}|.{13}|[0-9a-fA-F]{26})$/ : /^(?:.{8,64})$/ } }