aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tom_tom.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tom_tom.rb')
-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)