mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Use a more strict regular expression to match the tiles
This commit is contained in:
parent
76b14c23c6
commit
4445976cb9
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user