Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex doesn't match on hosts with > 10 USB busses #21

Closed
four0four opened this issue Apr 5, 2017 · 1 comment
Closed

Regex doesn't match on hosts with > 10 USB busses #21

four0four opened this issue Apr 5, 2017 · 1 comment

Comments

@four0four
Copy link

Hey all,

Udev identifies my mouse as something like this:
/devices/pci0000:00/0000:00:12.0/usb10/10-4/10-4:1.1/0003:1038:1384.001B/input/input40

This fails to match the default regex (^.*/usb./[0-9/.-]+:[0-9]+\.%i/[0-9]+:%s:%s.*$) , which appears to only expect usb0 thru usb9. I'm not great at regex, but I patched mine to ^.*/usb\d+/[0-9-]+/[0-9-]+:[0-9-]+\.%i/[0-9]+:%s:%s.*$, and that seems to work so far. There may be cleaner ways to express it, so I'll leave that up to you :)

for reference, should it matter, this is on 4.10.6-1-ARCH.

@flozz flozz closed this as completed in ff4d2a5 Apr 7, 2017
@flozz
Copy link
Owner

flozz commented Apr 7, 2017

Thank you ! It is now fixed in v2.5.1 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants