twilio / twilio-ruby

A Ruby gem for communicating with the Twilio API and generating TwiML
MIT License
1.35k stars 462 forks source link

fix: match only against the end of a file path. #654

Closed pat closed 1 year ago

pat commented 1 year ago

Otherwise if there happens to be .rb in a directory name, that'll be incorrectly modified as well.

I haven't added a test as this code is part of loading everything, rather than something that occurs once the library is loaded.

Checklist

broksonic21 commented 1 year ago

thanks for this one - we ran into it too (see https://github.com/twilio/twilio-ruby/issues/655 )

jcavena commented 1 year ago

Thanks for the fix!