diff options
| author | Alban Peignier | 2018-05-13 13:52:00 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2018-05-13 13:52:00 +0200 | 
| commit | 6c4f6e6232b4423c1161e1c2ab4d3fcac860dee2 (patch) | |
| tree | bc4a437f53983eafdd58df91e63f10152934d0f6 /lib/tom_tom.rb | |
| parent | 458f55a73105d8ade30f9874e8ca6b82e86011f1 (diff) | |
| download | chouette-core-6c4f6e6232b4423c1161e1c2ab4d3fcac860dee2.tar.bz2 | |
Test api_key format in TomTom.enabled?. Refs #6993
Diffstat (limited to 'lib/tom_tom.rb')
| -rw-r--r-- | lib/tom_tom.rb | 2 | 
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) | 
