Fixed detection for devices with slash in their name
Some checks are pending
Check and Lint / Check (push) Waiting to run
Check and Lint / Format (push) Waiting to run
Check and Lint / Clippy (push) Waiting to run

This commit is contained in:
cyber-sushi 2025-04-13 15:16:58 +02:00
parent 44b5c155db
commit 6e93559db4
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View file

@ -410,7 +410,7 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
[[package]]
name = "makima"
version = "0.10.0"
version = "0.10.1"
dependencies = [
"evdev",
"fork",

View file

@ -1,6 +1,6 @@
[package]
name = "makima"
version = "0.10.0"
version = "0.10.1"
edition = "2021"
[dependencies]

View file

@ -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;