diff --git a/.scripts/ci/check-license-header.js b/.scripts/ci/check-license-header.js index bb8055fb..1cc01b15 100644 --- a/.scripts/ci/check-license-header.js +++ b/.scripts/ci/check-license-header.js @@ -33,7 +33,7 @@ const ignore = [ async function checkFile(file) { if ( extensions.some((e) => file.endsWith(e)) && - !ignore.some((i) => file.endsWith(i)) + !ignore.some((i) => file.includes(`${path.sep}${i}`)) ) { const fileStream = fs.createReadStream(file); const rl = readline.createInterface({ @@ -125,6 +125,6 @@ if (files.length > 0) { console.log(missing.join("\n")); process.exit(1); } - }, + } ); } diff --git a/plugins/notification/src/notify_rust/server.rs b/plugins/notification/src/notify_rust/server.rs index 508213bb..c6802ece 100644 --- a/plugins/notification/src/notify_rust/server.rs +++ b/plugins/notification/src/notify_rust/server.rs @@ -20,8 +20,8 @@ use dbus::{ Path, }; -use super::{Hint, Notification, Timeout}; use super::xdg::{NOTIFICATION_NAMESPACE, NOTIFICATION_OBJECTPATH}; +use super::{Hint, Notification, Timeout}; static DBUS_ERROR_FAILED: &str = "org.freedesktop.DBus.Error.Failed"; /// Version of the crate equals the version server.