Skip to content

Commit 86d8a05

Browse files
made so only 'chase' is matched as chasecar
1 parent 1c6c2d3 commit 86d8a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ function addPosition(position) {
654654
var point = new google.maps.LatLng(position.gps_lat, position.gps_lon);
655655
var image_src = "";
656656
var color_index = 0;
657-
if(position.vehicle.search(/(chase)|(car)/i) != -1 // whitelist
657+
if(position.vehicle.search(/(chase)/i) != -1 // whitelist
658658
&& position.vehicle.search(/icarus/i) == -1) { // blacklist
659659
vehicle_type = "car";
660660
color_index = car_index++;

0 commit comments

Comments
 (0)