Skip to content

Commit

Permalink
#451: no method error .any?
Browse files Browse the repository at this point in the history
Fixed #451
  • Loading branch information
dgroup committed Aug 9, 2021
1 parent 9314604 commit 15ff9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lazylead/task/accuracy/logs_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Lazylead
# or attachment with plain log file
class LogsLink < Lazylead::Logs
def initialize(link)
super
super()
@link = link
end

Expand All @@ -48,7 +48,7 @@ def link?(issue)
.flat_map(&:split)
.reject(&:blank?)
.any? do |word|
@link.is_a?(Array) ? @link.any? { |l| word.start_with? l } : word.start_with?(@link)
@link.is_a?(Array) ? @link.any? { |l| word.include? l } : word.include?(@link)
end
end
end
Expand Down

0 comments on commit 15ff9c2

Please sign in to comment.