Fix detection regex for yubikey on Windows

Something changed in the behavior of regex in Qt that prevents matches using a begin line caret without a complementary end line.
This commit is contained in:
Jonathan White 2024-10-01 09:37:17 -04:00
parent b671070c0d
commit 673bdbcf3c
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -56,6 +56,7 @@ void DeviceListenerWin::registerHotplugCallback(bool arrived,
regex += QString("PID_%1&").arg(productId, 0, 16).toUpper();
}
}
regex += QString(".*$"); // Qt won't match otherwise
m_deviceIdMatch = QRegularExpression(regex);
DEV_BROADCAST_DEVICEINTERFACE_W notificationFilter{