lib/cobench/mask.rb in cobench-0.0.13 vs lib/cobench/mask.rb in cobench-0.0.14

- old
+ new

@@ -22,14 +22,14 @@ # Author:: Yegor Bugayenko (yegor256@gmail.com) # Copyright:: Copyright (c) 2022 Yegor Bugayenko # License:: MIT class Cobench::Mask def initialize(txt) - @org, @repo = txt.split('/') + @org, @repo = txt.downcase.split('/') end def matches?(repo) - org, repo = repo.split('/') + org, repo = repo.downcase.split('/') return false if ['', nil].include?(org) return false if ['', nil].include?(repo) return false if org != @org && @org != '*' return false if repo != @repo && @repo != '*' true