aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/connection_adapters/connection_specification.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/connection_specification.rb
index 1aeccf4444..563fc2d735 100644
--- a/activerecord/lib/active_record/connection_adapters/connection_specification.rb
+++ b/activerecord/lib/active_record/connection_adapters/connection_specification.rb
@@ -63,8 +63,8 @@ module ActiveRecord
end
# For DATABASE_URL, accept a limited concept of ints and floats
- SIMPLE_INT = /^\d+$/
- SIMPLE_FLOAT = /^\d+\.\d+$/
+ SIMPLE_INT = /\A\d+$\z/
+ SIMPLE_FLOAT = /\A\d+\.\d+\z/
def connection_url_to_hash(url) # :nodoc:
config = URI.parse url