Skip to content

Commit 57d1d50

Browse files
authored
fix: match only against the end of a file path. (#654)
1 parent 90ac516 commit 57d1d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/twilio-ruby/rest.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
end
66

77
Dir[File.join(__dir__, 'rest/*.rb')].sort.each do |file|
8-
require file.gsub('.rb', '_base.rb') unless file.end_with?('client.rb') || file.end_with?('_base.rb')
8+
require file.gsub(/\.rb$/, '_base.rb') unless file.end_with?('client.rb') || file.end_with?('_base.rb')
99
require file
1010
end
1111

0 commit comments

Comments
 (0)