Skip to content

Commit

Permalink
Fix deprecation warning for Ruby 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jobertabma committed May 31, 2020
1 parent 181c50c commit b8a7899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def sanitize_non_ascii(string)
replace: '_',
}

string.encode Encoding.find('ASCII'), encoding_options
string.encode(Encoding.find('ASCII'), **encoding_options)
end

matched_endpoints = []
Expand Down

0 comments on commit b8a7899

Please sign in to comment.