mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 07:19:42 -05:00
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:
parent
b8564d5c24
commit
3fde6aae45
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user