NextDroid / potree

WebGL point cloud viewer for large datasets
http://potree.org
Other
1 stars 0 forks source link

Use match function instead of endsWith where applicable #223

Open nmhaddadND opened 4 years ago

nmhaddadND commented 4 years ago

We've noticed an issue with using the endsWith function to grab lanes.fb files. S3 will grab the first file that ends with lanes.fb to display in potree. Usually we have two lanes (lanes.fb and original-lanes.fb). This usually works as intended because the files are organized alphanumerically in S3, meaning we pull up lanes.fb before original-lanes.fb. We break this when we add lanes files that begin with any number or letter before "L". A simple fix would be to use a matching function that matches exactly the regex expression for "lanes.fb". The alternative would be to load all lanes.fb files (already an issue).