Fixed detection for devices with slash in their name
This commit is contained in:
parent
44b5c155db
commit
6e93559db4
3 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -410,7 +410,7 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
|
|||
|
||||
[[package]]
|
||||
name = "makima"
|
||||
version = "0.10.0"
|
||||
version = "0.10.1"
|
||||
dependencies = [
|
||||
"evdev",
|
||||
"fork",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "makima"
|
||||
version = "0.10.0"
|
||||
version = "0.10.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -295,7 +295,7 @@ pub fn is_mapped(udev_device: &tokio_udev::Device, config_files: &Vec<Config>) -
|
|||
for config in config_files {
|
||||
if config
|
||||
.name
|
||||
.contains(&evdev_device.1.name().unwrap().to_string())
|
||||
.contains(&evdev_device.1.name().unwrap().to_string().replace("/", ""))
|
||||
&& devnode.to_path_buf() == evdev_device.0
|
||||
{
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue