Skip to content

Commit

Permalink
Use a more strict regular expression to match the tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
tumic0 committed Apr 27, 2024
1 parent 76b14c2 commit 4445976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/dem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ double DEM::elevation(const Coordinates &c)
QList<Area> DEM::tiles()
{
static const QRegularExpression re(
"([NS])([0-9]{2})([EW])([0-9]{3})(\\.hgt|\\.hgt\\.zip)");
"^([NS])([0-9]{2})([EW])([0-9]{3})(\\.hgt|\\.hgt\\.zip)$");
QDir dir(_dir);
QFileInfoList files(dir.entryInfoList(QDir::Files | QDir::Readable));
QLocale l(QLocale::system());
Expand Down

0 comments on commit 4445976

Please sign in to comment.