We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8cc637 commit 8fd173fCopy full SHA for 8fd173f
KDE Connect/KDE Connect/Swift Backend/DeviceInfo.swift
@@ -61,7 +61,7 @@ class DeviceInfo: NSObject {
61
}
62
63
// swiftlint:disable:next force_try
64
- private static let validDeviceIdRegex = try! NSRegularExpression(pattern: "^[a-zA-Z0-9_]{32,38}$")
+ private static let validDeviceIdRegex = try! NSRegularExpression(pattern: "^[a-zA-Z0-9_-]{32,38}$")
65
66
static func isValidDeviceId(deviceId: String) -> Bool {
67
let range = NSRange(location: 0, length: deviceId.utf16.count)
0 commit comments