Skip to content

Commit

Permalink
fix: NoMethodError when capabilities is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
iberianpig committed Jan 28, 2024
1 parent 4de68ca commit c7da915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fusuma/plugin/sendkey/keyboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Keyboard
def self.find_device(name_pattern:)
Fusuma::Device.reset
Fusuma::Device.all.find { |d|
next unless d.capabilities.include? "keyboard"
next unless /keyboard/.match?(d.capabilities)

d.name.match(/#{name_pattern}/)
}
Expand Down

0 comments on commit c7da915

Please sign in to comment.