Skip to content

Commit

Permalink
Remove markers whose descriptions start with //
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Jun 1, 2024
1 parent 35ec295 commit 092909a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/disable-marker-pack.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ for (const marker of markersToRemove) {
const currentMarkers = readJSON('../data/markers.json');

const result = currentMarkers.filter(marker => {
const isPrivateMarker = marker.description.startsWith('//');
const id = hash(marker);
const needsRemoval = hashes.has(id);
const needsRemoval = hashes.has(id) || isPrivateMarker;
return !needsRemoval;
});

Expand Down

0 comments on commit 092909a

Please sign in to comment.