File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ def initialize
294
294
# @param keyword [String] The product to look for.
295
295
# @return [Array<String>]
296
296
def find_msb_numbers ( keyword )
297
- product_list_matches = get_product_dropdown_list . select { |p | /^ #{ keyword } / === p [ :option_text ] }
297
+ product_list_matches = get_product_dropdown_list . select { |p | Regexp . new ( keyword ) === p [ :option_text ] }
298
298
if product_list_matches . empty?
299
299
print_debug ( "Did not find a match from the product list, attempting a generic search" )
300
300
search_by_keyword ( keyword )
@@ -573,7 +573,7 @@ def self.get_parsed_options
573
573
opt . separator ''
574
574
opt . separator 'Specific options:'
575
575
576
- opt . on ( '-q' , '--query <keyword>' , 'Keyword to search' ) do |v |
576
+ opt . on ( '-q' , '--query <keyword>' , 'Regex keyword to search' ) do |v |
577
577
options [ :keyword ] = v
578
578
end
579
579
@@ -588,7 +588,7 @@ def self.get_parsed_options
588
588
end
589
589
end
590
590
591
- opt . on ( '-r' , '--regex <string>' , '(Optional) Search filter ' ) do |v |
591
+ opt . on ( '-r' , '--regex <string>' , '(Optional) Regex download links ' ) do |v |
592
592
options [ :regex ] = v
593
593
end
594
594
You can’t perform that action at this time.
0 commit comments