aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlban Peignier2018-05-13 13:52:00 +0200
committerAlban Peignier2018-05-13 13:52:00 +0200
commit6c4f6e6232b4423c1161e1c2ab4d3fcac860dee2 (patch)
treebc4a437f53983eafdd58df91e63f10152934d0f6 /lib
parent458f55a73105d8ade30f9874e8ca6b82e86011f1 (diff)
downloadchouette-core-6c4f6e6232b4423c1161e1c2ab4d3fcac860dee2.tar.bz2
Test api_key format in TomTom.enabled?. Refs #6993
Diffstat (limited to 'lib')
-rw-r--r--lib/tom_tom.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tom_tom.rb b/lib/tom_tom.rb
index 9158b7a28..91f1a3800 100644
--- a/lib/tom_tom.rb
+++ b/lib/tom_tom.rb
@@ -17,7 +17,7 @@ module TomTom
end
def self.enabled?
- api_key.present?
+ api_key.present? && /[a-zA-Z0-9]{32}/ === api_key
end
def self.batch(way_costs)