Skip to content

Commit

Permalink
Changed the endless operator with 1..-1 to make it compatible with ru…
Browse files Browse the repository at this point in the history
…by 2.4 above (#447)

* Changed the endless operator with 1..-1 to make it compatible with ruby 2.4 above

* regex miss match
  • Loading branch information
dil-bparihar authored Dec 9, 2022
1 parent edfd029 commit 17b2981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zoom/actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Zoom
module Actions
def self.extract_path_keys(path)
path.scan(/:\w+/).map { |match| match[1..].to_sym }
path.scan(/:\w+/).map { |match| match[1..-1].to_sym }
end

def self.parse_path(path, path_keys, params)
Expand Down

0 comments on commit 17b2981

Please sign in to comment.