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 b8564d5c24
commit 3fde6aae45

View File

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