2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-23 10:27:57 +00:00

Fix Regex syntax in DeviceHost.kt

This commit is contained in:
Philip Cohn-Cort 2025-07-07 17:43:26 -04:00
parent f6f7d1e970
commit a0a6accc66

View File

@ -43,7 +43,7 @@ class DeviceHost private constructor(private val host: String) {
companion object { companion object {
/** Ping timeout */ /** Ping timeout */
private const val PING_TIMEOUT = 3_000 private const val PING_TIMEOUT = 3_000
private val hostnameValidityPattern = Regex("^[0-9A-Za-z._-:]+$") private val hostnameValidityPattern = Regex("^[0-9A-Za-z.:_-]+$")
@JvmStatic @JvmStatic
fun isValidDeviceHost(host: String): Boolean { fun isValidDeviceHost(host: String): Boolean {