lib/rspectacular/selectors.rb in rspectacular-0.23.0 vs lib/rspectacular/selectors.rb in rspectacular-0.23.1

- old
+ new

@@ -11,11 +11,11 @@ id_selector = sf(*args) id_selector.starts_with?('#') ? id_selector[1..-1] : id_selector end def sf(*args) - string = args.shift - selector = RSpectacular::Selectors.find { |regex, selector| string.match regex } + string = args[0] + selector = RSpectacular::Selectors.find { |regex, selector| string.match regex }[1] if selector.present? if selector.respond_to? :call selector.call(*args) else